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
@@ -113,8 +113,8 @@ public class TestInheritInsert extends BaseTestCase {
Car result = query.findOne();
assertThat(query.getGeneratedSql()).contains("order by t0.id, t2.location_code");
assertThat(query.getGeneratedSql()).contains("left join car_fuse t2 on t2.id = t1.fuse_id");
assertSql(query).contains("order by t0.id, t2.location_code");
assertSql(query).contains("left join car_fuse t2 on t2.id = t1.fuse_id");
assertNotNull(result);
}