use of com.hazelcast.simulator.test.annotations.Verify in project hazelcast-simulator by hazelcast.
the class TxnQueueWithLockTest method globalVerify.
@Verify
public void globalVerify() {
IQueue queue = targetInstance.getQueue(name + 'q');
IList<TxnCounter> results = targetInstance.getList(name + "results");
TxnCounter total = new TxnCounter();
for (TxnCounter counter : results) {
total.add(counter);
}
logger.info(name + ": " + total + " from " + results.size() + " worker Threads Queue size=" + queue.size());
assertFalse(name + ": firstLock.isLocked()", firstLock.isLocked());
assertFalse(name + ": secondLock.isLocked()", secondLock.isLocked());
// TODO: check if this assert can be re-enabled: assertEquals(total.committed - total.rolled, queue.size())
}
Aggregations