Samples/maven-code-gen-sample pom.xml updated after recent changes. 53/453/1
authorMaros Marsalek <mmarsale@cisco.com>
Mon, 10 Jun 2013 11:18:08 +0000 (13:18 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Mon, 10 Jun 2013 11:18:08 +0000 (13:18 +0200)
Added insepctDependencies config attribute.
Yang-maven-plugin integration tests marked as IT and now run by failsafe.

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/pom.xml
opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/src/test/java/org/opendaylight/controller/yang2sources/plugin/it/YangToSourcesPluginTestIT.java [moved from opendaylight/sal/yang-prototype/code-generator/maven-yang-plugin-it/src/test/java/org/opendaylight/controller/yang2sources/plugin/it/YangToSourcesPluginTest.java with 96% similarity]
opendaylight/sal/yang-prototype/code-generator/samples/maven-code-gen-sample/pom.xml

index 896827e..8d846a1 100644 (file)
             <scope>test</scope>
         </dependency>
     </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-failsafe-plugin</artifactId>
+                <version>2.6</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>integration-test</goal>
+                            <goal>verify</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
 </project>
\ No newline at end of file
@@ -16,7 +16,7 @@ import org.apache.maven.it.VerificationException;
 import org.apache.maven.it.Verifier;
 import org.junit.Test;
 
-public class YangToSourcesPluginTest {
+public class YangToSourcesPluginTestIT {
 
     // TODO Test yang files in transitive dependencies
 
@@ -112,7 +112,7 @@ public class YangToSourcesPluginTest {
 
     @Test
     public void testNoOutputDir() throws VerificationException {
-        Verifier v = YangToSourcesPluginTest.setUp("NoOutputDir/", false);
+        Verifier v = YangToSourcesPluginTestIT.setUp("NoOutputDir/", false);
         verifyCorrectLog(v);
     }
 
@@ -126,7 +126,7 @@ public class YangToSourcesPluginTest {
         v1.assertFilePresent("target/classes/META-INF/yang/testfile2.yang");
         v1.assertFilePresent("target/classes/META-INF/yang/testfile3.yang");
 
-        Verifier v2 = YangToSourcesPluginTest.setUp("GenerateTest2/", false);
+        Verifier v2 = YangToSourcesPluginTestIT.setUp("GenerateTest2/", false);
         v2.executeGoal("clean");
         v2.executeGoal("package");
         v2.assertFilePresent("target/classes/META-INF/yang/private.yang");
index 03a2e85..b1bcb06 100644 (file)
@@ -31,8 +31,7 @@
                                     </outputBaseDir>
                                 </generator>
                             </codeGenerators>
-                            <resourceProviders>
-                            </resourceProviders>
+                            <inspectDependencies>false</inspectDependencies>
                         </configuration>
                     </execution>
                 </executions>