mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor tests using assertSql() helper method
This helper method trims column alias from the sql (for Oracle)
This commit is contained in:
@@ -43,14 +43,14 @@ public class TestQueryAdapter extends BaseTestCase {
|
||||
.update();
|
||||
|
||||
List<String> sql = LoggedSqlCollector.current();
|
||||
assertThat(sql.get(0)).contains(" 2=2");
|
||||
assertSql(sql.get(0)).contains(" 2=2");
|
||||
|
||||
Ebean.find(TOne.class)
|
||||
.where().idEq(o.getId())
|
||||
.delete();
|
||||
|
||||
sql = LoggedSqlCollector.stop();
|
||||
assertThat(sql.get(0)).contains(" 3=3");
|
||||
assertSql(sql.get(0)).contains(" 3=3");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user