import org.opendaylight.yangtools.yang.parser.spi.meta.SomeModifiersUnresolvedException;
import org.opendaylight.yangtools.yang.parser.spi.source.StatementStreamSource;
-public class AugmentProcessTest {
+public class AugmentProcessTest extends AbstractYangTest {
private static final StatementStreamSource AUGMENTED = sourceForResource("/stmt-test/augments/augmented.yang");
private static final StatementStreamSource ROOT = sourceForResource("/stmt-test/augments/aug-root.yang");
}
@Test(expected = SomeModifiersUnresolvedException.class)
- public void multipleAugmentIncorrectPathTest() throws ReactorException {
+ public void multipleAugmentIncorrectPathTest() throws ReactorException {
SchemaContext result = RFC7950Reactors.defaultReactor().newBuild()
.addSource(MULTIPLE_AUGMENT_INCORRECT)
.buildEffective();
}
@Test(expected = SomeModifiersUnresolvedException.class)
- public void multipleAugmentIncorrectPathAndGrpTest() throws ReactorException {
+ public void multipleAugmentIncorrectPathAndGrpTest() throws ReactorException {
SchemaContext result = RFC7950Reactors.defaultReactor().newBuild()
.addSource(MULTIPLE_AUGMENT_INCORRECT2)
.buildEffective();
}
@Test
- public void caseShortHandAugmentingTest() throws Exception {
- final SchemaContext context = StmtTestUtils.parseYangSources("/choice-case-type-test-models");
+ public void caseShortHandAugmentingTest() {
+ final SchemaContext context = assertEffectiveModelDir("/choice-case-type-test-models");
assertNotNull(context);