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
@@ -55,7 +55,7 @@ public class TestQueryExists extends BaseTestCase {
List<Order> ordersThatDontHave = query2.findList();
assertThat(query.getGeneratedSql()).contains(" exists (");
assertSql(query).contains(" exists (");
assertThat(query2.getGeneratedSql()).contains(" not exists (");
assertThat(ordersThatHave).isNotEmpty();
@@ -79,7 +79,7 @@ public class TestQueryExists extends BaseTestCase {
query2.findList();
assertThat(query.getGeneratedSql()).contains(" exists (");
assertSql(query).contains(" exists (");
assertThat(query2.getGeneratedSql()).contains(" not exists (");
assertThat(customersWithContacts).isNotEmpty();