CI Testing - ParentQueryTest cascade on parent.data

This commit is contained in:
rob bygrave
2020-03-01 12:29:54 +13:00
parent 11409f8c09
commit 90ccf2d8b4
2 changed files with 6 additions and 4 deletions
@@ -21,9 +21,10 @@ public class ParentQueryTest extends BaseTestCase {
@Before
public void clearDb() {
Ebean.deleteAll(Ebean.find(Data.class).findList());
Ebean.deleteAll(Ebean.find(Parent.class).findList());
//@rob: this does not work as it does not clear the ManyToMany relations.
//Ebean.find(Data.class).delete();
Ebean.find(Parent.class).delete();
// Ebean.find(Data.class).delete();
// Ebean.find(Parent.class).delete();
}
@Test
@@ -26,9 +26,10 @@ public class ParentRawSqlTest extends BaseTestCase {
@Before
public void clearDb() {
Ebean.deleteAll(Ebean.find(Data.class).findList());
Ebean.deleteAll(Ebean.find(Parent.class).findList());
//@rob: this does not work as it does not clear the ManyToMany relations.
//Ebean.find(Data.class).delete();
Ebean.find(Parent.class).delete();
// Ebean.find(Data.class).delete();
// Ebean.find(Parent.class).delete();
}
@Test