X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fparser%2Fimpl%2FUsesAugmentTest.java;h=c713f759f1c9e79089067acd45e2a716ea2538ab;hb=8a22fe9a9294bf02c4c2829a547dfae02b434aea;hp=1d760b870cce686cb0f87e272a796cd74ff10834;hpb=32f84d761384e639c22cdde386e1a8ef490fe23a;p=yangtools.git diff --git a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/UsesAugmentTest.java b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/UsesAugmentTest.java index 1d760b870c..c713f759f1 100644 --- a/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/UsesAugmentTest.java +++ b/yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/UsesAugmentTest.java @@ -11,6 +11,7 @@ import static org.junit.Assert.*; import java.io.FileNotFoundException; import java.net.URI; +import java.net.URISyntaxException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -113,7 +114,7 @@ public class UsesAugmentTest { */ @Test public void testAugmentInUses() throws Exception { - modules = TestUtils.loadModules(getClass().getResource("/grouping-test").getPath()); + modules = TestUtils.loadModules(getClass().getResource("/grouping-test").toURI()); Module testModule = TestUtils.findModule(modules, "uses-grouping"); LinkedList path = new LinkedList<>(); @@ -609,8 +610,8 @@ public class UsesAugmentTest { } @Test - public void testTypedefs() throws FileNotFoundException { - modules = TestUtils.loadModules(getClass().getResource("/grouping-test").getPath()); + public void testTypedefs() throws FileNotFoundException, URISyntaxException { + modules = TestUtils.loadModules(getClass().getResource("/grouping-test").toURI()); Module testModule = TestUtils.findModule(modules, "grouping-definitions"); Set> types = testModule.getTypeDefinitions();