RobustIdentifiable implemented and tested + test impacts.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / SingleRouterConfigTest.java
index 280e6dac420fb78b05b89a8c2f0ce6c1051bd0c3..a344f7201b34bd48a88e37ef2078ffd7db9c5f89 100644 (file)
@@ -40,7 +40,7 @@ public class SingleRouterConfigTest {
         DocumentType type1 = mock(DocumentType.class);
         when(type1.getId()).thenReturn(new Id<DocumentType>("type1"));
         DocumentType type2 = mock(DocumentType.class);
-        when(type1.getId()).thenReturn(new Id<DocumentType>("type2"));
+        when(type2.getId()).thenReturn(new Id<DocumentType>("type2"));
 
         config.documentTypeConfig().add(type1);
         config.documentTypeConfig().add(type2);
@@ -54,7 +54,7 @@ public class SingleRouterConfigTest {
         Transformation transformation1 = mock(Transformation.class);
         when(transformation1.getId()).thenReturn(new Id<Transformation>("t1"));
         Transformation transformation2 = mock(Transformation.class);
-        when(transformation1.getId()).thenReturn(new Id<Transformation>("t2"));
+        when(transformation2.getId()).thenReturn(new Id<Transformation>("t2"));
 
         config.transformationConfig().add(transformation1);
 
@@ -69,7 +69,7 @@ public class SingleRouterConfigTest {
         Filter filter1 = mock(Filter.class);
         when(filter1.getId()).thenReturn(new Id<Filter>("f1"));
         Filter filter2 = mock(Filter.class);
-        when(filter1.getId()).thenReturn(new Id<Filter>("f2"));
+        when(filter2.getId()).thenReturn(new Id<Filter>("f2"));
 
         config.filterConfig().add(filter1);