mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1114 - Deprecate findUnique() - please migrate to findOne() - update tests
This commit is contained in:
@@ -49,12 +49,12 @@ public class TestBatchLazyWithCacheHits extends BaseTestCase {
|
||||
|
||||
UUOne c = Ebean.find(UUOne.class)
|
||||
.where().idEq(inserted.get(2).getId())
|
||||
.findUnique();
|
||||
.findOne();
|
||||
assertNotNull(c);
|
||||
|
||||
UUOne c2 = Ebean.find(UUOne.class)
|
||||
.where().idEq(inserted.get(2).getId())
|
||||
.findUnique();
|
||||
.findOne();
|
||||
assertNotNull(c2);
|
||||
statistics = beanCache.getStatistics(true);
|
||||
assertEquals(statistics.getHitCount(), 1);
|
||||
|
||||
Reference in New Issue
Block a user