StatementParserMode.SEMVER_MODE);
assertNotNull(context);
- Module semVer = context.findModuleByNamespace(new URI("http://openconfig.net/yang/openconfig-ext"))
- .iterator().next();
+ Module semVer = context.findModules(new URI("http://openconfig.net/yang/openconfig-ext")).iterator().next();
assertEquals(SemVer.valueOf("1.0.0"), semVer.getSemanticVersion().get());
}
StatementParserMode.SEMVER_MODE);
fail("Test should fail due to invalid import of openconfig-version module");
} catch (ReactorException e) {
- assertTrue(e.getCause().getMessage().startsWith(
- "Unable to find module compatible with requested import " + "[openconfig-extensions(1.0.0)]."));
+ assertTrue(e.getCause().getCause().getMessage().startsWith(
+ "Unable to find module compatible with requested import [openconfig-extensions(1.0.0)]."));
}
}
StatementParserMode.SEMVER_MODE);
fail("Test should fail due to invalid import of openconfig-version module");
} catch (ReactorException e) {
- assertTrue(e.getCause().getMessage().startsWith(
- "Unable to find module compatible with requested import " + "[openconfig-extensions(0.9.9)]."));
+ assertTrue(e.getCause().getCause().getMessage().startsWith(
+ "Unable to find module compatible with requested import [openconfig-extensions(0.9.9)]."));
}
}
StatementParserMode.SEMVER_MODE);
fail("Test should fail due to invalid import of openconfig-version module");
} catch (ReactorException e) {
- assertTrue(e.getCause().getMessage().startsWith(
- "Unable to find module compatible with requested import " + "[openconfig-extensions(2.0.0)]."));
+ assertTrue(e.getCause().getCause().getMessage().startsWith(
+ "Unable to find module compatible with requested import [openconfig-extensions(2.0.0)]."));
}
}
StatementParserMode.SEMVER_MODE);
fail("Test should fail due to invalid import of openconfig-version module");
} catch (ReactorException e) {
- assertTrue(e.getCause().getMessage().startsWith(
- "Unable to find module compatible with requested import " + "[openconfig-extensions(2.0.5)]."));
+ assertTrue(e.getCause().getCause().getMessage().startsWith(
+ "Unable to find module compatible with requested import [openconfig-extensions(2.0.5)]."));
}
}
}