X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fmaven-yang-plugin%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang2sources%2Fplugin%2FUtilTest.java;h=240825409fcc8459209c1d3a407aea4a0acd6e1a;hb=ff1b4a79cca00743a00c3b0b1100bd0ab2b2fb31;hp=75e50f0261a1b5f2eba1ee4bc26fd4193464aa8e;hpb=a640c5c549376e5d72038e033d49ef6f0df96c92;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin/src/test/java/org/opendaylight/controller/yang2sources/plugin/UtilTest.java b/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin/src/test/java/org/opendaylight/controller/yang2sources/plugin/UtilTest.java index 75e50f0261..240825409f 100644 --- a/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin/src/test/java/org/opendaylight/controller/yang2sources/plugin/UtilTest.java +++ b/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin/src/test/java/org/opendaylight/controller/yang2sources/plugin/UtilTest.java @@ -7,7 +7,7 @@ */ package org.opendaylight.controller.yang2sources.plugin; -import static org.junit.Assert.assertTrue; +import static org.junit.Assert.*; import java.io.File; import java.io.FileNotFoundException; @@ -19,10 +19,11 @@ public class UtilTest { @Test public void testCache() throws FileNotFoundException { - String yang = new File(getClass().getResource("/mock.yang").getFile()) + String yang = new File(getClass().getResource("/yang/mock.yang") + .getFile()) .getParent(); - Collection files = Util.listFiles(yang); - Collection files2 = Util.listFiles(yang); + Collection files = Util.listFiles(new File(yang)); + Collection files2 = Util.listFiles(new File(yang)); assertTrue(files == files2); }