X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FRobustDocumentTypeTest.java;h=8db9ff25fe2d855381c4e9c258dd6ada67c728b9;hb=2e9a88b0478d074974818dc384ca45c2bf4fdaa5;hp=aa724e26f3d10ca0f46fb3f976ad410ea0a470cf;hpb=ca624324bf36e5ba8217a6af861cbf898a40adfc;p=xmlrouter diff --git a/impl/src/test/java/org/wamblee/xmlrouter/impl/RobustDocumentTypeTest.java b/impl/src/test/java/org/wamblee/xmlrouter/impl/RobustDocumentTypeTest.java index aa724e2..8db9ff2 100644 --- a/impl/src/test/java/org/wamblee/xmlrouter/impl/RobustDocumentTypeTest.java +++ b/impl/src/test/java/org/wamblee/xmlrouter/impl/RobustDocumentTypeTest.java @@ -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("docid")); + robust = new RobustDocumentType(documentType); source = mock(DOMSource.class); }