mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Remove the duplicate TestSoftDeleteBasic.testFindSoftDeletedList()
Hmmm, my bad. I merged the branch manually and that didn't remove the PR so I've merged this twice now and hence ended up with a duplicate method. All good, just removing this duplicate method.
This commit is contained in:
@@ -247,26 +247,6 @@ public class TestSoftDeleteBasic extends BaseTestCase {
|
||||
DB.deleteAllPermanent(singletonList(bean));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFindSoftDeletedList() {
|
||||
EBasicSoftDelete bean = new EBasicSoftDelete();
|
||||
bean.setName("softDelFetch");
|
||||
DB.save(bean);
|
||||
|
||||
EBasicSDChild bean2 = new EBasicSDChild(bean, "softDelFetchus", 1L);
|
||||
DB.save(bean2);
|
||||
DB.delete(bean2);
|
||||
|
||||
EBasicSDChild child = DB
|
||||
.find(EBasicSDChild.class)
|
||||
.setIncludeSoftDeletes()
|
||||
.where()
|
||||
.idEq(bean.getId())
|
||||
.findOne();
|
||||
assertThat(child).isNotNull();
|
||||
assertThat(child.getOwner().getChildren().size()).isEqualTo(1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDeleteById_and_findCount() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user