Repurpose DataNodeContainer.getDataChildByName()
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / parser / stmt / rfc7950 / LeafrefStatementTest.java
index 69daaf9702755ad7a0ff9c5a88b1776084f9be7c..769f23030e338d042b0f6410cc3879b8ac87c5e2 100644 (file)
@@ -41,17 +41,14 @@ public class LeafrefStatementTest {
 
         final LeafSchemaNode leafrefA = (LeafSchemaNode) foo.getDataChildByName(QName.create(foo.getQNameModule(),
                 "leafref-a"));
-        assertNotNull(leafrefA);
         assertRequireInstanceInLeafref(leafrefA, true);
 
         final LeafSchemaNode leafrefB = (LeafSchemaNode) foo.getDataChildByName(QName.create(foo.getQNameModule(),
                 "leafref-b"));
-        assertNotNull(leafrefB);
         assertRequireInstanceInLeafref(leafrefB, true);
 
         final LeafSchemaNode leafrefC = (LeafSchemaNode) foo.getDataChildByName(QName.create(foo.getQNameModule(),
                 "leafref-c"));
-        assertNotNull(leafrefC);
         assertRequireInstanceInLeafref(leafrefC, true);
     }