AbstractBaseForCommonTableExpressions

Base class for common table expression tests

Methods
void testRepeatedQueryWithSetup(int maxRetries, String[] expectedRowData, String[] expectedColumnNames, int expectedNumberOfRows, String setupSQL, String withQuery, int closeAndReopenDatabaseConnectionOnIteration, String[] expectedColumnTypes)
Test a query.
void testRepeatedQueryWithSetup(int maxRetries, String[] expectedRowData, String[] expectedColumnNames, int expectedNumberOfRows, String setupSQL, String withQuery, int closeAndReopenDatabaseConnectionOnIteration, String[] expectedColumnTypes) throws SQLException
Test a query.
Parameters:
maxRetries - the number of times the query is run
expectedRowData - the expected result data
expectedColumnNames - the expected columns of the result
expectedNumberOfRows - the expected number of rows
setupSQL - the SQL statement used for setup
withQuery - the query
closeAndReopenDatabaseConnectionOnIteration - whether the connection should be re-opened each time
expectedColumnTypes - the expected datatypes of the result