X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FRobustDocumentTypeTest.java;h=8db9ff25fe2d855381c4e9c258dd6ada67c728b9;hb=2e9a88b0478d074974818dc384ca45c2bf4fdaa5;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..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,6 +35,7 @@ public class RobustDocumentTypeTest { @Before public void setUp() { documentType = mock(DocumentType.class); + when(documentType.getId()).thenReturn(new Id("docid")); robust = new RobustDocumentType(documentType); source = mock(DOMSource.class); }