import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
import org.opendaylight.yangtools.yang.model.api.stmt.FeatureEffectiveStatement;
-public class Bug8922Test {
+public class Bug8922Test extends AbstractYangTest {
private static final QName MY_CON = QName.create("foo", "my-con");
private static final QName TARGET = QName.create("foo", "target");
@Test
- public void testAllFeaturesSupported() throws Exception {
- final var context = StmtTestUtils.parseYangSource("/bugs/bug8922/foo.yang");
- assertNotNull(context);
+ public void testAllFeaturesSupported() {
+ final var context = assertEffectiveModel("/bugs/bug8922/foo.yang");
final var findNode = context.findDataTreeChild(TARGET, MY_CON).get();
assertThat(findNode, instanceOf(ContainerSchemaNode.class));
assertEquals(Optional.of("New description"), findNode.getDescription());