//check map size after eviction.
assertEquals(0, map1.size());
assertEquals(0, map2.size());
assertEquals(0, map3.size());
//near cache sizes should be zero after eviction.
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(0, countNotNullValuesInNearCache(mapName, instance1));
}
});
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(0, countNotNullValuesInNearCache(mapName, instance2));
}
});
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(0, countNotNullValuesInNearCache(mapName, instance3));
}
});