import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-public class YT956Test {
+public class YT956Test extends AbstractYangTest {
private static final QName ANOTHER_CONTAINER = QName.create("http://www.example.com/anothermodule",
"another-container");
private static final QName FIRST_AUGMENT = QName.create("http://www.example.com/mainmodule", "first-augment");
@Test
- public void testAugmentationConditional() throws Exception {
- final DataSchemaNode another = StmtTestUtils.parseYangSources("/bugs/YT956/")
- .findDataChildByName(ANOTHER_CONTAINER).get();
+ public void testAugmentationConditional() {
+ final DataSchemaNode another = assertEffectiveModelDir("/bugs/YT956/")
+ .getDataChildByName(ANOTHER_CONTAINER);
assertThat(another, isA(ContainerSchemaNode.class));
final ContainerSchemaNode anotherContainer = (ContainerSchemaNode) another;