RobustIdentifiable implemented and tested + test impacts.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / RobustDocumentTypeTest.java
index 57289dcb5a68b736f6ff7745b4ae5c6334b5bf99..2c295b59623fd071cb3fe0627eaa67a5af106d30 100644 (file)
@@ -35,7 +35,8 @@ public class RobustDocumentTypeTest {
     @Before
     public void setUp() {
         documentType = mock(DocumentType.class);
-        robust = new RobustDocumentType(new Id<DocumentType>(10), documentType);
+        when(documentType.getId()).thenReturn(new Id<DocumentType>("docid"));
+        robust = new RobustDocumentType("app1", documentType);
         source = mock(DOMSource.class);
     }