Author: manik.surtani(a)jboss.com
Date: 2008-06-17 19:53:14 -0400 (Tue, 17 Jun 2008)
New Revision: 6001
Modified:
core/branches/2.2.X/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java
Log:
Fixed some ugliness around interfaces introduced for DataContainer and Notifier, as direct
implementations of these were being used instead of the interfaces
Modified:
core/branches/2.2.X/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java
===================================================================
---
core/branches/2.2.X/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java 2008-06-17
23:43:54 UTC (rev 6000)
+++
core/branches/2.2.X/src/test/java/org/jboss/cache/notifications/RemoteCacheListenerTest.java 2008-06-17
23:53:14 UTC (rev 6001)
@@ -31,12 +31,12 @@
import org.jboss.cache.config.Configuration;
import org.jboss.cache.factories.ComponentRegistry;
import org.jboss.cache.lock.IsolationLevel;
-import org.jboss.cache.util.TestingUtil;
import org.jboss.cache.notifications.event.Event;
import static org.jboss.cache.notifications.event.Event.Type.*;
import org.jboss.cache.notifications.event.EventImpl;
import org.jboss.cache.notifications.event.NodeModifiedEvent;
import static org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType.*;
+import org.jboss.cache.util.TestingUtil;
import static org.testng.AssertJUnit.*;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
@@ -114,7 +114,7 @@
cr1 = TestingUtil.extractComponentRegistry(cache1);
cr2 = TestingUtil.extractComponentRegistry(cache2);
assert cr1 != cr2;
- assert cr1.getComponent(NotifierImpl.class) !=
cr2.getComponent(NotifierImpl.class);
+ assert cr1.getComponent(Notifier.class) != cr2.getComponent(Notifier.class);
assert eventLog1 != eventLog2;
assert cache1.getLocalAddress() != cache2.getLocalAddress();
CacheSPI spi1, spi2;
Show replies by date