stop
240241242243244245246247248249250
{ Assert.assertTrue("Ought to have failed!", true); } // clean up. cache1.stopService(); cache2.stopService(); cache1 = null; cache2 = null; } public void testPessTxSyncUnableToEvict() throws Exception
290291292293294295296297298299300
{ Assert.assertTrue("Ought to have succeeded!", false); } // clean up. cache1.stopService(); cache2.stopService(); cache1 = null; cache2 = null; } public void testPessTxAsyncUnableToEvict() throws Exception
5354555657585960616263
{ assertTrue(true); } assertEquals(null, dummy.getCalled()); cache.stopService(); } public void testNoTransactionGetMethod() throws Exception {
85868788899091929394
{ fail = true; } assertTrue(fail); assertEquals(null, dummy.getCalled()); cache.stopService(); } }
7071727374757677787980
} catch (RollbackException re) { Assert.assertTrue("Expecting a rollback exception!", true); } c.stopService(); } public void testImplicitTxFailure() throws Exception { final TreeCache c = createCache();
107108109110111112113114115116117
// test exceptions. for (int i = 0; i < numThreads; i++) { Assert.assertNull("Thread " + thread[i].getName() + " threw exception!", thread[i].getException()); } c.stopService(); } public void testLocalTransaction() throws Exception {
673674675676677678679680681682683
// we should have 0 exceptions assertEquals(0, exceptions.size()); } finally { if (cache != null) cache.stopService(); } } public void testCacheContentionOnNode() throws Exception
734735736737738739740741742743
// we should have 0 exceptions assertEquals(0, exceptions.size()); } finally { if (cache != null) cache.stopService(); } } }
173174175176177178179180181182183
{ TreeCache cache = (TreeCache) caches.get(id); if (cache != null) { try { cache.stopService(); cache.destroyService(); caches.remove(id); } catch (Exception e) { System.out.println("Exception stopping cache " + e.getMessage());
165166167168169170171172173174175
catch(Exception e) { fail(e.toString()); } finally { if(cache3 != null) cache3.stopService(); } } public void testStateTransfer() { TreeCache cache4=null;