import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
-import static org.junit.Assert.assertNotNull;
import java.util.List;
import org.junit.Test;
import org.opendaylight.yangtools.yang.common.QName;
import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.opendaylight.yangtools.yang.model.api.SchemaNode;
import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
import org.opendaylight.yangtools.yang.model.api.type.PatternConstraint;
import org.opendaylight.yangtools.yang.model.api.type.StringTypeDefinition;
import org.opendaylight.yangtools.yang.model.api.type.UnionTypeDefinition;
-public class Bug5396Test {
+public class Bug5396Test extends AbstractYangTest {
@Test
- public void test() throws Exception {
- SchemaContext context = StmtTestUtils.parseYangSources("/bugs/bug5396");
- assertNotNull(context);
+ public void test() {
+ final var context = assertEffectiveModelDir("/bugs/bug5396");
QName root = QName.create("foo", "root");
QName myLeaf2 = QName.create("foo", "my-leaf2");