/** * Verify that a remove event gets added and then is sent to the service passed to propagate. * <p> * @throws Exception */ public void testRemoveThenWalk() throws Exception { // SETUP MockRemoteCacheService<String, String> service = new MockRemoteCacheService<String, String>(); ZombieCacheServiceNonLocal<String, String> zombie = new ZombieCacheServiceNonLocal<String, String>( 10 ); String cacheName = "testRemoveThenWalk"; String key = "myKey"; // DO WORK zombie.remove( cacheName, key, 123l ); zombie.propagateEvents( service ); // VERIFY assertEquals( "Updated element is not as expected.", key, service.lastRemoveKey ); }
/** * Verify that a remove event gets added and then is sent to the service passed to propagate. * <p> * @throws Exception */ public void testRemoveThenWalk() throws Exception { // SETUP MockCacheServiceNonLocal<String, String> service = new MockCacheServiceNonLocal<String, String>(); ZombieCacheServiceNonLocal<String, String> zombie = new ZombieCacheServiceNonLocal<String, String>( 10 ); String cacheName = "testRemoveThenWalk"; String key = "myKey"; // DO WORK zombie.remove( cacheName, key, 123l ); zombie.propagateEvents( service ); // VERIFY assertEquals( "Updated element is not as expected.", key, service.lastRemoveKey ); }
/** * Verify that a remove event gets added and then is sent to the service passed to propagate. * <p> * @throws Exception */ public void testRemoveThenWalk() throws Exception { // SETUP MockCacheServiceNonLocal<String, String> service = new MockCacheServiceNonLocal<String, String>(); ZombieCacheServiceNonLocal<String, String> zombie = new ZombieCacheServiceNonLocal<String, String>( 10 ); String cacheName = "testRemoveThenWalk"; String key = "myKey"; // DO WORK zombie.remove( cacheName, key, 123l ); zombie.propagateEvents( service ); // VERIFY assertEquals( "Updated element is not as expected.", key, service.lastRemoveKey ); }
/** * Verify that a remove event gets added and then is sent to the service passed to propagate. * <p> * @throws Exception */ public void testRemoveThenWalk() throws Exception { // SETUP MockRemoteCacheService<String, String> service = new MockRemoteCacheService<String, String>(); ZombieCacheServiceNonLocal<String, String> zombie = new ZombieCacheServiceNonLocal<String, String>( 10 ); String cacheName = "testRemoveThenWalk"; String key = "myKey"; // DO WORK zombie.remove( cacheName, key, 123l ); zombie.propagateEvents( service ); // VERIFY assertEquals( "Updated element is not as expected.", key, service.lastRemoveKey ); }