simplifications.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / SingleRouterConfigTest.java
index 280e6dac420fb78b05b89a8c2f0ce6c1051bd0c3..6ec16b1b8d5857f7c7eaf9f48eb1a02a0422e586 100644 (file)
@@ -33,6 +33,7 @@ public class SingleRouterConfigTest {
     @Before
     public void setUp() {
         config = new SingleRouterConfig(new Id<RouterConfig>("routerconfig"));
+        assertEquals("routerconfig", config.getId().getId());
     }
 
     @Test
@@ -40,7 +41,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 +55,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 +70,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);