BUG-4688: eliminate SimpleDateFormatUtil.DEFAULT_DATE_REV
[yangtools.git] / yang / yang-model-export / src / test / java / org / opendaylight / yangtools / yang / model / export / EffectiveSchemaContextEmitterTest.java
index c7d683e7decb368f32431a5e7548744c3d7a519b..4a4e68aa80b579325ad6dc3a9f24eebfa3c1f19a 100644 (file)
@@ -29,7 +29,6 @@ import org.custommonkey.xmlunit.XMLAssert;
 import org.custommonkey.xmlunit.XMLUnit;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.common.SimpleDateFormatUtil;
 import org.opendaylight.yangtools.yang.model.api.Module;
 import org.opendaylight.yangtools.yang.model.api.ModuleImport;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
@@ -59,9 +58,7 @@ public class EffectiveSchemaContextEmitterTest {
                 assertNotNull(output);
                 assertNotEquals(0, output.length());
 
-                final Document doc = YinExportTestUtils
-                        .loadDocument(String.format("/bugs/bug2444/yin-effective-emitter/%s@%s.yin", module.getName(),
-                                SimpleDateFormatUtil.getRevisionFormat().format(module.getRevision())));
+                final Document doc = YinExportTestUtils.loadDocument("/bugs/bug2444/yin-effective-emitter", module);
                 assertXMLEquals(doc, output);
             } finally {
                 byteArrayOutputStream.close();