Config no longer implements Identifiable because this was in violation of the contrac...
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / RobustTransformationTest.java
index d26e9dee1c8d641c1eda8c0f7717685718163961..f7b4ec6a88a4545a535ef995fc693747062d4492 100644 (file)
@@ -35,8 +35,8 @@ public class RobustTransformationTest {
     @Before
     public void setUp() {
         transformation = mock(Transformation.class);
-        robust = new RobustTransformation(new Id<Transformation>(100),
-            transformation);
+        when(transformation.getId()).thenReturn(new Id<Transformation>("t1"));
+        robust = new RobustTransformation(transformation);
         source = mock(DOMSource.class);
         resSource = mock(DOMSource.class);
     }