- @Test(expected = SomeModifiersUnresolvedException.class)
- public void testParsingPrefixIdentityTestModule() throws Exception {
- try {
- StmtTestUtils.parseYangSource("/identity/prefixidentitytest.yang");
- } catch (SomeModifiersUnresolvedException e) {
- StmtTestUtils.log(e, " ");
- throw e;
- }
+ @Test
+ public void testParsingPrefixIdentityTestModule() {
+ assertInferenceException(startsWith("Unable to resolve identity (urn:test.prefixidentitytest?revision="
+ + "2014-09-24)prefixtest and base identity"), "/identity/prefixidentitytest.yang");