mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2357 - Update tests to use Database from EbeanServer
This commit is contained in:
@@ -39,14 +39,14 @@ public class ClusterTest {
|
||||
Person foo = new Person("Someone");
|
||||
foo.save();
|
||||
|
||||
DB.getServerCacheManager().clearAll();
|
||||
DB.cacheManager().clearAll();
|
||||
DB.getDefault().metaInfo().resetAllMetrics();
|
||||
other.metaInfo().resetAllMetrics();
|
||||
|
||||
Person fooA = DB.find(Person.class, foo.getId());
|
||||
Person fooB = other.find(Person.class, foo.getId());
|
||||
|
||||
DuelCache dualCacheA = (DuelCache) DB.getServerCacheManager().beanCache(Person.class);
|
||||
DuelCache dualCacheA = (DuelCache) DB.cacheManager().beanCache(Person.class);
|
||||
assertCounts(dualCacheA, 0, 1, 0, 1);
|
||||
fooA = DB.find(Person.class, foo.getId());
|
||||
assertCounts(dualCacheA, 1, 1, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user