X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FSingleRouterConfigTest.java;h=6ec16b1b8d5857f7c7eaf9f48eb1a02a0422e586;hb=ef3c789029b09fe8bc279a07a7b2208e286957f0;hp=280e6dac420fb78b05b89a8c2f0ce6c1051bd0c3;hpb=e52385618670b54a5c6a4f2fbfab381bef43a905;p=xmlrouter diff --git a/impl/src/test/java/org/wamblee/xmlrouter/impl/SingleRouterConfigTest.java b/impl/src/test/java/org/wamblee/xmlrouter/impl/SingleRouterConfigTest.java index 280e6da..6ec16b1 100644 --- a/impl/src/test/java/org/wamblee/xmlrouter/impl/SingleRouterConfigTest.java +++ b/impl/src/test/java/org/wamblee/xmlrouter/impl/SingleRouterConfigTest.java @@ -33,6 +33,7 @@ public class SingleRouterConfigTest { @Before public void setUp() { config = new SingleRouterConfig(new Id("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("type1")); DocumentType type2 = mock(DocumentType.class); - when(type1.getId()).thenReturn(new Id("type2")); + when(type2.getId()).thenReturn(new Id("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("t1")); Transformation transformation2 = mock(Transformation.class); - when(transformation1.getId()).thenReturn(new Id("t2")); + when(transformation2.getId()).thenReturn(new Id("t2")); config.transformationConfig().add(transformation1); @@ -69,7 +70,7 @@ public class SingleRouterConfigTest { Filter filter1 = mock(Filter.class); when(filter1.getId()).thenReturn(new Id("f1")); Filter filter2 = mock(Filter.class); - when(filter1.getId()).thenReturn(new Id("f2")); + when(filter2.getId()).thenReturn(new Id("f2")); config.filterConfig().add(filter1);