Package org.apache.calcite.test
Class Fluent
- java.lang.Object
-
- org.apache.calcite.test.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fluent
explainContains(java.lang.String expected)
Fluent
parseContains(java.lang.String expected)
private org.apache.calcite.piglet.Ast.Program
parseProgram(java.lang.String s)
Fluent
returns(java.lang.String out)
Fluent
returns(java.util.function.Function<java.lang.String,java.lang.Void> checker)
Fluent
returnsUnordered(java.lang.String... lines)
-
-
-
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
-
-