Merge "Parents pom distribution"
[controller.git] / opendaylight / sal / yang-prototype / code-generator / maven-yang-plugin / src / test / java / org / opendaylight / controller / yang2sources / plugin / UtilTest.java
index 75e50f0261a1b5f2eba1ee4bc26fd4193464aa8e..240825409fcc8459209c1d3a407aea4a0acd6e1a 100644 (file)
@@ -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<File> files = Util.listFiles(yang);
-        Collection<File> files2 = Util.listFiles(yang);
+        Collection<File> files = Util.listFiles(new File(yang));
+        Collection<File> files2 = Util.listFiles(new File(yang));
         assertTrue(files == files2);
     }