Package org.jboss.cache

Examples of org.jboss.cache.TreeCache.stopService()


        assertNull(mgr.getTransaction());
        assertEquals(MethodDeclarations.rollbackMethod, calls.get(3));
        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());

        cache.stopService();


    }

View Full Code Here


        assertNull(mgr.getTransaction());
        assertEquals(2, calls.size());
        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());

        cache.stopService();


    }

View Full Code Here

        assertEquals(2, calls.size());
        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());


        cache.stopService();

    }


    public void testRemoteCommitTransaction() throws Exception
View Full Code Here

        assertEquals(MethodDeclarations.commitMethod, calls.get(3));
        assertEquals(0, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(0, cache.getTransactionTable().getNumLocalTransactions());


        cache.stopService();

    }


    public void testTwoWayRemoteCacheBroadcast() throws Exception
View Full Code Here

        List calls2 = dummy2.getAllCalled();
        assertEquals(MethodDeclarations.optimisticPrepareMethod, calls2.get(0));
        assertEquals(MethodDeclarations.commitMethod, calls2.get(1));

        cache.stopService();
        cache2.stopService();

    }


    public void testFailurePrepareRemoteCacheBroadcast() throws Exception
View Full Code Here

        List calls2 = dummy2.getAllCalled();
        assertEquals(MethodDeclarations.rollbackMethod, calls2.get(0));


        cache.stopService();
        cache2.stopService();

    }


    public void testFailurePrepareLocalCacheBroadcast() throws Exception
View Full Code Here

        List calls2 = dummy2.getAllCalled();
        assertEquals(0, calls2.size());


        cache.stopService();
        cache2.stopService();

    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.