Yang-maven-plugin refactored + fixed bugs.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / maven-yang-plugin / src / test / java / org / opendaylight / controller / yang2sources / plugin / UtilTest.java
index 75e50f0261a1b5f2eba1ee4bc26fd4193464aa8e..96a4d57a00d97f3a8ec9e36b0bccd84e13c551f0 100644 (file)
@@ -7,13 +7,13 @@
  */
 package org.opendaylight.controller.yang2sources.plugin;
 
-import static org.junit.Assert.assertTrue;
+import org.junit.Test;
 
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.util.Collection;
 
-import org.junit.Test;
+import static org.junit.Assert.assertTrue;
 
 public class UtilTest {
 
@@ -21,8 +21,8 @@ public class UtilTest {
     public void testCache() throws FileNotFoundException {
         String yang = new File(getClass().getResource("/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);
     }