mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - add testSoftDelete_includeSoftDeletes_findOne
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user