No effective change - add testSoftDelete_includeSoftDeletes_findOne

This commit is contained in:
rob bygrave
2018-10-04 17:14:53 +13:00
parent dcde47daf6
commit 2c04430185
@@ -30,7 +30,7 @@ public class TestHistoryExclude extends BaseTestCase {
}
@Test
public void testSoftDelete() {
public void testSoftDelete_includeSoftDeletes_findList() {
HeLink l = new HeLink("two", "boo");
Ebean.save(l);
@@ -44,6 +44,23 @@ public class TestHistoryExclude extends BaseTestCase {
assertThat(list).isNotEmpty();
}
@Test
public void testSoftDelete_includeSoftDeletes_findOne() {
HeLink l = new HeLink("three", "boo2");
Ebean.save(l);
Ebean.delete(l);
HeLink found = Ebean.find(HeLink.class)
.setId(l.getId())
.setIncludeSoftDeletes()
.findOne();
assertThat(found).isNotNull();
assertThat(found.getName()).isEqualTo("three");
}
@Test
public void testLazyLoad() {