Refactor tests using assertSql() helper method

This helper method trims column alias from the sql (for Oracle)
This commit is contained in:
rob bygrave
2020-02-20 15:08:43 +13:00
parent 78b9066345
commit de42655bbd
123 changed files with 767 additions and 743 deletions
@@ -43,9 +43,9 @@ public class TestQueryBaseTable extends BaseTestCase {
List<String> sql = LoggedSqlCollector.stop();
assertThat(sql).hasSize(3);
assertThat(sql.get(0)).contains("from O_CUSTOMER");
assertThat(sql.get(1)).contains("from o_customer");
assertThat(sql.get(2)).contains("from O_CUSTOMER");
assertSql(sql.get(0)).contains("from O_CUSTOMER");
assertSql(sql.get(1)).contains("from o_customer");
assertSql(sql.get(2)).contains("from O_CUSTOMER");
}
}