798799800801802803804805806807808
assertEquals(0, c1.getNumberOfLocksHeld()); assertEquals(0, c2.getNumberOfLocksHeld()); c1.stop(); c2.stop(); // if(ex != null) // { // ex.printStackTrace(); // fail("Thread failed: " + ex);
419420421422423424425426427428429
assert l1.exists(A); assert l1.get(A).get("K").equals("V"); // test persistence c1.stop(); assert l1.exists(A); assert l1.get(A).get("K").equals("V"); Cache c2 = createCache("2", true, false, true, false);
447448449450451452453454455456457
{ // don't care } } spi.stop(); spi.destroy(); } } }
8485868788899091929394
assertTrue(!cache.exists("/one/two")); assertEquals(MethodDeclarations.putKeyValMethodLocal, dummy.getCalled()); txManager.commit(); cache.stop(); } public void testInvalidTransaction() throws Exception {
127128129130131132133134135136137
} catch (Throwable t) { assertTrue(true); } cache.stop(); } public void testMultiplePut() throws Exception {
159160161162163164165166167168169
assertTrue(!cache.exists("/one/two")); assertEquals(MethodDeclarations.putKeyValMethodLocal, dummy.getCalled()); txManager.commit(); cache.stop(); } }