X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fmaven-yang-plugin-it%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang2sources%2Fplugin%2Fit%2FYangToSourcesPluginTest.java;h=267e35ab605fc469a3785655956c0edcdf35407a;hb=1069fd445de35caa94d8cf6021e4e54399bdf5f7;hp=75d6ee5d7d5ffb1898cb950d37af25203d2e0e04;hpb=a640c5c549376e5d72038e033d49ef6f0df96c92;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/src/test/java/org/opendaylight/controller/yang2sources/plugin/it/YangToSourcesPluginTest.java b/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/src/test/java/org/opendaylight/controller/yang2sources/plugin/it/YangToSourcesPluginTest.java index 75d6ee5d7d..267e35ab60 100644 --- a/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/src/test/java/org/opendaylight/controller/yang2sources/plugin/it/YangToSourcesPluginTest.java +++ b/opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/src/test/java/org/opendaylight/controller/yang2sources/plugin/it/YangToSourcesPluginTest.java @@ -116,4 +116,17 @@ public class YangToSourcesPluginTest { verifyCorrectLog(v); } + @Test + public void testFindResourceOnCp() throws VerificationException { + Verifier v1 = new Verifier(new File("src/test/resources/GenerateTest1/").getAbsolutePath()); + v1.executeGoal("package"); + v1.assertFilePresent("target/external-resources/testfile1.yang"); + v1.assertFilePresent("target/external-resources/testfile2.yang"); + v1.assertFilePresent("target/external-resources/testfile3.yang"); + + Verifier v2 = YangToSourcesPluginTest.setUp("GenerateTest2/", + false); + v2.executeGoal("package"); + } + }