- public void testInvalidYang10() throws Exception {
- try {
- StmtTestUtils.parseYangSource("/rfc7950/identity-stmt/foo10.yang");
- fail("Test should fail due to invalid Yang 1.0");
- } catch (final ReactorException e) {
- assertTrue(e.getCause().getMessage().startsWith("Maximal count of BASE for IDENTITY is 1, detected 3."));
- }
+ public void testInvalidYang10() {
+ assertInvalidSubstatementException(startsWith("Maximal count of BASE for IDENTITY is 1, detected 3."),
+ "/rfc7950/identity-stmt/foo10.yang");