mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 23:28:55 +00:00
Test only change - fix test assert to support sequence and identity insert
This commit is contained in:
1 parent
dd907cc4bc
commit
20bd2241e4
1 file changed
+1
-1
@@ -33,7 +33,7 @@ public class TestOneToOneOrphanRemove extends BaseTestCase {
|
|||||||
assertThat(sql).hasSize(3);
|
assertThat(sql).hasSize(3);
|
||||||
assertThat(sql.get(0)).contains("delete from oto_cust_address where aid=? and version=?");
|
assertThat(sql.get(0)).contains("delete from oto_cust_address where aid=? and version=?");
|
||||||
assertThat(sql.get(1)).contains("update oto_cust set version=? where cid=? and version=?");
|
assertThat(sql.get(1)).contains("update oto_cust set version=? where cid=? and version=?");
|
||||||
assertThat(sql.get(2)).contains("insert into oto_cust_address (line1, line2, line3, version, customer_cid)");
|
assertThat(sql.get(2)).contains("insert into oto_cust_address ");
|
||||||
|
|
||||||
jack.setAddress(null);
|
jack.setAddress(null);
|
||||||
Ebean.save(jack);
|
Ebean.save(jack);
|
||||||
|
|||||||
Reference in new issue
Block a user