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");
}