Remove DataSchemaContextTree.getChild()
[yangtools.git] / yang / yang-data-util / src / test / java / org / opendaylight / yangtools / yang / data / util / codec / DataSchemaContextTreeTest.java
index cca8dcd33622cb55f9c08e57d8c65f76a7431f4b..7c9048e2c32c1f34604106a0d8f5636be7c004fc 100644 (file)
@@ -8,8 +8,6 @@
 package org.opendaylight.yangtools.yang.data.util.codec;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
 import java.net.URI;
@@ -45,21 +43,15 @@ public class DataSchemaContextTreeTest {
         assertTrue(CONTEXT.findChild(YangInstanceIdentifier.of(FOO)).isPresent());
         assertTrue(CONTEXT.findChild(YangInstanceIdentifier.of(FOO).node(BAR)).isPresent());
         assertTrue(CONTEXT.findChild(YangInstanceIdentifier.of(FOO).node(BAR).node(BAZ)).isPresent());
-
-        assertNotNull(CONTEXT.getChild(YangInstanceIdentifier.of(FOO)));
-        assertNotNull(CONTEXT.getChild(YangInstanceIdentifier.of(FOO).node(BAR)));
-        assertNotNull(CONTEXT.getChild(YangInstanceIdentifier.of(FOO).node(BAR).node(BAZ)));
     }
 
     @Test
     public void testSimpleBad() {
         assertEquals(Optional.empty(), CONTEXT.findChild(YangInstanceIdentifier.of(BAR)));
-        assertNull(CONTEXT.getChild(YangInstanceIdentifier.of(BAR)));
     }
 
     @Test
     public void testNestedBad() {
         assertEquals(Optional.empty(), CONTEXT.findChild(YangInstanceIdentifier.of(BAR).node(BAZ)));
-        assertNull(CONTEXT.getChild(YangInstanceIdentifier.of(BAR).node(BAZ)));
     }
 }