Package org.apache.calcite.test
Class CsvTest.Fluent
- java.lang.Object
-
- org.apache.calcite.test.CsvTest.Fluent
-
- Enclosing class:
- CsvTest
private class CsvTest.Fluent extends java.lang.Object
Fluent API to perform test actions.
-
-
Constructor Summary
Constructors Constructor Description Fluent(java.lang.String model, java.lang.String sql, java.util.function.Consumer<java.sql.ResultSet> expect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) CsvTest.Fluent
checking(java.util.function.Consumer<java.sql.ResultSet> expect)
Assigns a function to call to test whether output is correct.(package private) CsvTest.Fluent
ok()
Runs the test.(package private) CsvTest.Fluent
returns(java.lang.String... expectedLines)
Sets the rows that are expected to be returned from the SQL query.(package private) CsvTest.Fluent
returnsUnordered(java.lang.String... expectedLines)
Sets the rows that are expected to be returned from the SQL query, in no particular order.
-
-
-
Method Detail
-
ok
CsvTest.Fluent ok()
Runs the test.
-
checking
CsvTest.Fluent checking(java.util.function.Consumer<java.sql.ResultSet> expect)
Assigns a function to call to test whether output is correct.
-
returns
CsvTest.Fluent returns(java.lang.String... expectedLines)
Sets the rows that are expected to be returned from the SQL query.
-
returnsUnordered
CsvTest.Fluent returnsUnordered(java.lang.String... expectedLines)
Sets the rows that are expected to be returned from the SQL query, in no particular order.
-
-