use of com.hazelcast.monitor.LocalReplicatedMapStats in project hazelcast by hazelcast.
the class ReplicatedMapStatsTest method testPutOperationCount_afterPutAll.
@Test
public void testPutOperationCount_afterPutAll() {
Map<Integer, Integer> map = new HashMap<Integer, Integer>();
for (int i = 1; i <= 100; i++) {
map.put(i, i);
}
ReplicatedMap<Integer, Integer> replicatedMap = getReplicatedMap();
replicatedMap.putAll(map);
final LocalReplicatedMapStats stats = replicatedMap.getReplicatedMapStats();
assertTrueEventually(new AssertTask() {
@Override
public void run() throws Exception {
assertEquals(100, stats.getPutOperationCount());
}
});
}
Aggregations