#1114 - Deprecate findUnique() - please migrate to findOne() - update tests

This commit is contained in:
rob bygrave
2017-09-08 22:48:46 +12:00
parent 2470486f20
commit 8c0232fdb8
67 changed files with 128 additions and 128 deletions
+3 -3
View File
@@ -35,11 +35,11 @@ public class TestCacheNaturalId extends BaseTestCase {
contactCache.getStatistics(true);
Contact c0 = Ebean.find(Contact.class).where().eq("email", emailToSearch).findUnique();
Contact c0 = Ebean.find(Contact.class).where().eq("email", emailToSearch).findOne();
ServerCacheStatistics stats0 = contactCache.getStatistics(false);
Contact c1 = Ebean.find(Contact.class).where().eq("email", emailToSearch).findUnique();
Contact c1 = Ebean.find(Contact.class).where().eq("email", emailToSearch).findOne();
ServerCacheStatistics stats1 = contactCache.getStatistics(false);
@@ -54,7 +54,7 @@ public class TestCacheNaturalId extends BaseTestCase {
awaitL2Cache();
Contact c2 = Ebean.find(Contact.class).where().eq("email", "mychangedemail@what.com")
.findUnique();
.findOne();
ServerCacheStatistics stats2 = contactCache.getStatistics(false);