RobustIdentifiable implemented and tested + test impacts.
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / RobustDocumentTypeTest.java
index aa724e26f3d10ca0f46fb3f976ad410ea0a470cf..2c295b59623fd071cb3fe0627eaa67a5af106d30 100644 (file)
@@ -23,6 +23,7 @@ import javax.xml.transform.dom.DOMSource;
 
 import org.junit.Before;
 import org.junit.Test;
+import org.wamblee.xmlrouter.common.Id;
 import org.wamblee.xmlrouter.config.DocumentType;
 
 public class RobustDocumentTypeTest {
@@ -34,6 +35,7 @@ public class RobustDocumentTypeTest {
     @Before
     public void setUp() {
         documentType = mock(DocumentType.class);
+        when(documentType.getId()).thenReturn(new Id<DocumentType>("docid"));
         robust = new RobustDocumentType("app1", documentType);
         source = mock(DOMSource.class);
     }