#2352 - Rename ServerCache methods with deprecation

This commit is contained in:
rbygrave
2021-09-03 17:24:33 +12:00
parent 7c2a77081b
commit aa53742a07
33 changed files with 212 additions and 149 deletions
@@ -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);