Allow classes that inherit from AbstractTestQueryFramework to supply expectedQueryRunner.
@@ -80,13 +80,19 @@ public abstract class AbstractTestQueryFramework
throws Exception
{
queryRunner = createQueryRunner();
- expectedQueryRunner = new H2QueryRunner();
+ expectedQueryRunner = createExpectedQueryRunner();
sqlParser = new SqlParser();
}
protected abstract QueryRunner createQueryRunner()
throws Exception;
+ protected ExpectedQueryRunner createExpectedQueryRunner()
+ throws Exception
+ {
+ return new H2QueryRunner();
+ }
+
@AfterClass(alwaysRun = true)
public void close()
throws Exception
