mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2352 - Rename ServerCache methods with deprecation
This commit is contained in:
@@ -46,7 +46,7 @@ public class ClusterTest {
|
||||
Person fooA = DB.find(Person.class, foo.getId());
|
||||
Person fooB = other.find(Person.class, foo.getId());
|
||||
|
||||
DuelCache dualCacheA = (DuelCache) DB.getServerCacheManager().getBeanCache(Person.class);
|
||||
DuelCache dualCacheA = (DuelCache) DB.getServerCacheManager().beanCache(Person.class);
|
||||
assertCounts(dualCacheA, 0, 1, 0, 1);
|
||||
fooA = DB.find(Person.class, foo.getId());
|
||||
assertCounts(dualCacheA, 1, 1, 0, 1);
|
||||
@@ -54,7 +54,7 @@ public class ClusterTest {
|
||||
fooA = DB.find(Person.class, foo.getId());
|
||||
assertCounts(dualCacheA, 2, 1, 0, 1);
|
||||
fooB = other.find(Person.class, foo.getId());
|
||||
DuelCache dualCacheB = (DuelCache) other.cacheManager().getBeanCache(Person.class);
|
||||
DuelCache dualCacheB = (DuelCache) other.cacheManager().beanCache(Person.class);
|
||||
assertCounts(dualCacheB, 2, 1, 1, 0);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ public class ClusterTest {
|
||||
other.cacheManager().clearAll();
|
||||
other.metaInfo().resetAllMetrics();
|
||||
|
||||
DuelCache dualCache = (DuelCache) other.cacheManager().getBeanCache(Person.class);
|
||||
DuelCache dualCache = (DuelCache) other.cacheManager().beanCache(Person.class);
|
||||
|
||||
Person foo0 = other.find(Person.class, 1);
|
||||
assertCounts(dualCache, 0, 1, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user