#627 - Rename Query.includeSoftDeletes() to Query.setIncludeSoftDeletes()

This commit is contained in:
Robin Bygrave
2016-03-29 16:38:09 +13:00
parent df95f4759b
commit de6ba31996
9 changed files with 36 additions and 9 deletions
@@ -37,7 +37,7 @@ public class TestSoftDeleteBasic extends BaseTestCase {
EBasicSoftDelete findInclude = Ebean.find(EBasicSoftDelete.class)
.setId(bean.getId())
.includeSoftDeletes()
.setIncludeSoftDeletes()
.findUnique();
assertThat(findInclude).isNotNull();
@@ -70,7 +70,7 @@ public class TestSoftDeleteBasic extends BaseTestCase {
// -- test includeSoftDeletes().findRowCount()
LoggedSqlCollector.start();
int rowCountFull = Ebean.find(EBasicSoftDelete.class).includeSoftDeletes().findRowCount();
int rowCountFull = Ebean.find(EBasicSoftDelete.class).setIncludeSoftDeletes().findRowCount();
assertThat(rowCountFull).isGreaterThan(rowCountAfter);
loggedSql = LoggedSqlCollector.stop();