removed the prefix argument from ConfigImpl.wrap().
[xmlrouter] / impl / src / test / java / org / wamblee / xmlrouter / impl / RobustDocumentTypeTest.java
index aa724e26f3d10ca0f46fb3f976ad410ea0a470cf..8db9ff25fe2d855381c4e9c258dd6ada67c728b9 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,7 +35,8 @@ public class RobustDocumentTypeTest {
     @Before
     public void setUp() {
         documentType = mock(DocumentType.class);
-        robust = new RobustDocumentType("app1", documentType);
+        when(documentType.getId()).thenReturn(new Id<DocumentType>("docid"));
+        robust = new RobustDocumentType(documentType);
         source = mock(DOMSource.class);
     }