BUG-7568: refactor yang-maven-plugin
[yangtools.git] / yang / yang-maven-plugin-it / src / test / java / org / opendaylight / yangtools / yang2sources / plugin / it / YangToSourcesPluginTestIT.java
index 7cea1e7174983057b9e5cb244f2c6d09b7a6d112..b6f1b55d3b81864610bd8a0ce0fcd932d517bc25 100644 (file)
@@ -62,16 +62,19 @@ public class YangToSourcesPluginTestIT {
             setUp("test-parent/MissingYangInDep/", false);
             fail("Verification exception should have been thrown");
         } catch (VerificationException e) {
-            assertVerificationException(e, "org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: "
-                    + "Imported module [unknownDep] was not found.");
+            assertVerificationException(e,
+                    "SchemaResolutionException{unsatisfiedImports={RevisionSourceIdentifier"
+                    + " [name=private@2013-02-27]=[ModuleImportImpl"
+                    + " [name=unknownDep, revision=2013-02-27, semanticVersion=0.0.0]]}");
+            return;
         }
     }
 
     static void verifyCorrectLog(final Verifier vrf) throws VerificationException {
         vrf.verifyErrorFreeLog();
-        vrf.verifyTextInLog("[INFO] yang-to-sources: YANG files parsed from");
-        vrf.verifyTextInLog("[INFO] yang-to-sources: Code generator instantiated "
-                + "from org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl");
+        vrf.verifyTextInLog("[INFO] yang-to-sources: Project model files parsed: ");
+        vrf.verifyTextInLog("[INFO] yang-to-sources: Code generator instantiated from "
+                + "org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl");
         vrf.verifyTextInLog("[INFO] yang-to-sources: Sources generated by "
                 + "org.opendaylight.yangtools.yang2sources.spi.CodeGeneratorTestImpl: null");
     }