From 6135aad35296fc238e651c72bc9fcf686cd9223a Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 23 Nov 2016 17:54:39 +0100 Subject: [PATCH] Fix IT test instantiation We should be passing maven options for all tests, fix the two omissions. Change-Id: I43b5a001997547dc9935f390f046a5d8d839cd9f Signed-off-by: Robert Varga (cherry picked from commit 5e6134e6824f2663516d51a1b5195883d35589a2) (cherry picked from commit 42475e5eb7c4f57542837f1521efe221c1bb928a) --- .../yang2sources/plugin/it/YangToSourcesPluginTestIT.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yang/yang-maven-plugin-it/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/it/YangToSourcesPluginTestIT.java b/yang/yang-maven-plugin-it/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/it/YangToSourcesPluginTestIT.java index 0ed29b7718..5015100ca2 100644 --- a/yang/yang-maven-plugin-it/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/it/YangToSourcesPluginTestIT.java +++ b/yang/yang-maven-plugin-it/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/it/YangToSourcesPluginTestIT.java @@ -150,8 +150,7 @@ public class YangToSourcesPluginTestIT { @Test public void testFindResourceOnCp() throws Exception { - Verifier v1 = new Verifier(new File(getClass().getResource( - "/test-parent/GenerateTest1/pom.xml").toURI()).getParent()); + Verifier v1 = setUp("test-parent/GenerateTest1/", false); v1.executeGoal("clean"); v1.executeGoal("package"); @@ -165,8 +164,7 @@ public class YangToSourcesPluginTestIT { v1.assertFilePresent(buildDir + "/classes/META-INF/yang/testfile2.yang"); v1.assertFilePresent(buildDir + "/classes/META-INF/yang/testfile3.yang"); - Verifier v2 = new Verifier(new File(getClass().getResource( - "/test-parent/GenerateTest2/pom.xml").toURI()).getParent()); + Verifier v2 = setUp("test-parent/GenerateTest2/", false); v2.executeGoal("clean"); v2.executeGoal("package"); -- 2.36.6