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
@@ -83,9 +83,9 @@ public class TestOneToOneOrphanStringId extends BaseTestCase {
List<String> sql = LoggedSqlCollector.current();
assertThat(sql).hasSize(5);
assertThat(sql.get(0)).contains("insert into oto_aone");
assertSql(sql.get(0)).contains("insert into oto_aone");
assertSqlBind(sql.get(1));
assertThat(sql.get(2)).contains("update oto_atwo set aone_id=? where id=?");
assertSql(sql.get(2)).contains("update oto_atwo set aone_id=? where id=?");
assertThat(sql.get(3)).contains("delete from oto_aone where id=?");
assertSqlBind(sql.get(4));