Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
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
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 75e50f0261a1b5f2eba1ee4bc26fd4193464aa8e..240825409fcc8459209c1d3a407aea4a0acd6e1a 100644
(file)
--- 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;
*/
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;
import java.io.File;
import java.io.FileNotFoundException;
@@
-19,10
+19,11
@@
public class UtilTest {
@Test
public void testCache() throws FileNotFoundException {
@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();
.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);
}
assertTrue(files == files2);
}