Class Fluent


  • class Fluent
    extends java.lang.Object
    Fluent API to perform Piglet test actions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String pig  
    • Constructor Summary

      Constructors 
      Constructor Description
      Fluent​(java.lang.String pig)  
    • Field Detail

      • pig

        private final java.lang.String pig
    • Constructor Detail

      • Fluent

        Fluent​(java.lang.String pig)
    • Method Detail

      • parseProgram

        private org.apache.calcite.piglet.Ast.Program parseProgram​(java.lang.String s)
                                                            throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • explainContains

        public Fluent explainContains​(java.lang.String expected)
                               throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • returns

        public Fluent returns​(java.lang.String out)
                       throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • returnsUnordered

        public Fluent returnsUnordered​(java.lang.String... lines)
                                throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • returns

        public Fluent returns​(java.util.function.Function<java.lang.String,​java.lang.Void> checker)
                       throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException
      • parseContains

        public Fluent parseContains​(java.lang.String expected)
                             throws org.apache.calcite.piglet.parser.ParseException
        Throws:
        org.apache.calcite.piglet.parser.ParseException