Search in sources :

Example 1 with MapOperationCounter

use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.

the class MapStoreTest method globalVerify.

@Verify
public void globalVerify() {
    MapOperationCounter total = new MapOperationCounter();
    for (MapOperationCounter operationCounter : operationCounterList) {
        total.add(operationCounter);
    }
    logger.info(name + ": " + total + " from " + operationCounterList.size() + " worker threads");
}
Also used : MapOperationCounter(com.hazelcast.simulator.tests.map.helpers.MapOperationCounter) Verify(com.hazelcast.simulator.test.annotations.Verify)

Example 2 with MapOperationCounter

use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.

the class MapTTLTest method globalVerify.

@Verify
public void globalVerify() {
    MapOperationCounter total = new MapOperationCounter();
    for (MapOperationCounter counter : results) {
        total.add(counter);
    }
    logger.info(name + ": " + total + " total of " + results.size());
    assertTrueEventually(new AssertTask() {

        @Override
        public void run() throws Exception {
            assertEquals(name + ": Map should be empty, some TTL events are not processed", 0, map.size());
        }
    });
}
Also used : AssertTask(com.hazelcast.simulator.utils.AssertTask) MapOperationCounter(com.hazelcast.simulator.tests.map.helpers.MapOperationCounter) DistributedObjectDestroyedException(com.hazelcast.spi.exception.DistributedObjectDestroyedException) Verify(com.hazelcast.simulator.test.annotations.Verify)

Example 3 with MapOperationCounter

use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.

the class ReplicatedTTL method localVerify.

@Verify(global = false)
public void localVerify() {
    MapOperationCounter total = new MapOperationCounter();
    for (MapOperationCounter counter : results) {
        total.add(counter);
    }
    logger.info(name + ": " + total + " total of " + results.size());
    assertTrueEventually(new AssertTask() {

        @Override
        public void run() throws Exception {
            logger.info(name + ": " + "assert map Size = " + map.size());
            assertEquals(name + ": Replicated Map should be empty, some TTL events are not processed", 0, map.size());
        }
    });
}
Also used : AssertTask(com.hazelcast.simulator.utils.AssertTask) MapOperationCounter(com.hazelcast.simulator.tests.map.helpers.MapOperationCounter) DistributedObjectDestroyedException(com.hazelcast.spi.exception.DistributedObjectDestroyedException) Verify(com.hazelcast.simulator.test.annotations.Verify)

Example 4 with MapOperationCounter

use of com.hazelcast.simulator.tests.map.helpers.MapOperationCounter in project hazelcast-simulator by hazelcast.

the class MapAsyncOpsTest method globalVerify.

@Verify(global = true)
public void globalVerify() {
    MapOperationCounter totalMapOperationsCount = new MapOperationCounter();
    for (MapOperationCounter mapOperationsCount : results) {
        totalMapOperationsCount.add(mapOperationsCount);
    }
    logger.info(name + ": " + totalMapOperationsCount + " total of " + results.size());
}
Also used : MapOperationCounter(com.hazelcast.simulator.tests.map.helpers.MapOperationCounter) Verify(com.hazelcast.simulator.test.annotations.Verify)

Aggregations

Verify (com.hazelcast.simulator.test.annotations.Verify)4 MapOperationCounter (com.hazelcast.simulator.tests.map.helpers.MapOperationCounter)4 AssertTask (com.hazelcast.simulator.utils.AssertTask)2 DistributedObjectDestroyedException (com.hazelcast.spi.exception.DistributedObjectDestroyedException)2