X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FRobustDocumentTypeTest.java;h=2c295b59623fd071cb3fe0627eaa67a5af106d30;hb=75f42f00e16ceee9ea333e598c9287de20ede1c3;hp=254826cb9573ebc2bc46d87d7562c412220b4714;hpb=e52385618670b54a5c6a4f2fbfab381bef43a905;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 254826c..2c295b5 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(documentType); + when(documentType.getId()).thenReturn(new Id("docid")); + robust = new RobustDocumentType("app1", documentType); source = mock(DOMSource.class); }