RobustIdentifiable implemented and tested + test impacts.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / XMLRouterFunctionTest.java
index e2e08b4a0e7b43c941d0711d81d1e8c7385de639..bfb2b41129da4d901fb9ecd8cae3c57d079fb9db 100644 (file)
@@ -63,6 +63,7 @@ public class XMLRouterFunctionTest {
         DocumentType type = mock(DocumentType.class);
         when(type.isInstance(any(DOMSource.class))).thenReturn(true);
         when(type.getName()).thenReturn(aType);
+        when(type.getId()).thenReturn(new Id<DocumentType>(aType));
         RouterConfig routerConfig = configService.emptyConfig("app");
         routerConfig.documentTypeConfig().add(type);
         return routerConfig;