THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
Cache cache = getCache(); DistributedTestCase.disconnectFromDS(); await().atMost(30, SECONDS).untilTrue(new AtomicBooleanuntil(() -> {return (cache == null || cache.isClosed());}); is equivalent to: WaitCriterion waitForCacheClose = new WaitCriterion() { @Override public boolean done() { return cache == null || cache.isClosed(); } @Override public String description() { return "Wait for Cache to be closed"; } }; DistributedTestCase.waitForCriterion(waitForCacheClose, 30000, 500, true); |