First version after introduction of meaningful ids and Identifiable interface.
[xmlrouter] / listener / src / test / java / org / wamblee / xmlrouter / listener / CompositeEventListenerTest.java
index 19608b873ec3c4401533836fdbf84e766e7b5704..8d2b135fe99e1abc0e456776ed7a5c7a36032f21 100644 (file)
@@ -27,8 +27,7 @@ import org.wamblee.xmlrouter.config.Transformation;
 
 public class CompositeEventListenerTest {
 
-    private static final String DESTINATION_NAME = "dest";
-    private static final long DESTINATION_ID = 12L;
+    private static final String DESTINATION_ID = "destid";
     private CompositeEventListener composite;
 
     private EventInfo source;
@@ -43,7 +42,7 @@ public class CompositeEventListenerTest {
     public void testNoListeners() {
         // verify no exceptions occur.
         composite.delivered(mock(EventInfo.class), getTransformations(),
-            DESTINATION_ID, DESTINATION_NAME, true);
+            DESTINATION_ID, true);
         composite.notDelivered(mock(EventInfo.class));
     }
 
@@ -73,8 +72,7 @@ public class CompositeEventListenerTest {
     }
 
     private void invokeDelivered() {
-        composite.delivered(source, getTransformations(), DESTINATION_ID,
-            DESTINATION_NAME, true);
+        composite.delivered(source, getTransformations(), DESTINATION_ID, true);
     }
 
     private void invokeNotDelivered() {
@@ -83,7 +81,7 @@ public class CompositeEventListenerTest {
 
     private void checkInvokeDelivered(EventListener listener) {
         verify(listener).delivered(same(source), eq(getTransformations()),
-            eq(DESTINATION_ID), eq(DESTINATION_NAME), eq(true));
+            eq(DESTINATION_ID), eq(true));
     }
 
     @Test