First version after introduction of meaningful ids and Identifiable interface.
[xmlrouter] / listener / src / test / java / org / wamblee / xmlrouter / listener / CompositeEventListenerTest.java
index fd94c43e6b72fadd03908d25b3f3c60d9209bdc3..8d2b135fe99e1abc0e456776ed7a5c7a36032f21 100644 (file)
@@ -21,18 +21,13 @@ import static org.mockito.Mockito.*;
 
 import java.util.ArrayList;
 
-import javax.print.attribute.standard.Destination;
-
 import org.junit.Before;
 import org.junit.Test;
-import org.wamblee.xmlrouter.common.Id;
 import org.wamblee.xmlrouter.config.Transformation;
 
 public class CompositeEventListenerTest {
 
-    private static final String DESTINATION_NAME = "dest";
-    private static final Id<Destination> DESTINATION_ID = new Id<Destination>(
-        12);
+    private static final String DESTINATION_ID = "destid";
     private CompositeEventListener composite;
 
     private EventInfo source;
@@ -47,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));
     }
 
@@ -77,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() {
@@ -87,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