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:
@@ -28,6 +28,6 @@ public class TestOnlyIdEntity extends BaseTestCase {
|
||||
|
||||
assertThat(bean.getId()).isGreaterThan(0);
|
||||
assertThat(sql).hasSize(1);
|
||||
assertThat(sql.get(0)).contains("insert into only_id_entity default values");
|
||||
assertSql(sql.get(0)).contains("insert into only_id_entity default values");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user