X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-parser-rfc7950%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fstmt%2FIfFeatureResolutionTest.java;h=673e3f631d83bfd7b64c1643aa9bbf996daa6665;hb=bb60da5fe2d1928defb46ed92b290cfff93dcd81;hp=4115485ca2b1f6aa33d25e3dcb31633a6556b900;hpb=1cc6359e5bae1459582e9262a24ca56f23bcc70f;p=yangtools.git diff --git a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java index 4115485ca2..673e3f631d 100644 --- a/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java +++ b/yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/IfFeatureResolutionTest.java @@ -17,7 +17,7 @@ import com.google.common.collect.ImmutableSet; import java.util.Set; import org.junit.Test; import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.model.api.AnyXmlSchemaNode; +import org.opendaylight.yangtools.yang.model.api.AnyxmlSchemaNode; import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode; import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode; import org.opendaylight.yangtools.yang.model.api.Module; @@ -48,7 +48,7 @@ public class IfFeatureResolutionTest { final Module testModule = schemaContext.findModule("foo").get(); assertEquals(9, testModule.getChildNodes().size()); - final ContainerSchemaNode testContainerA = (ContainerSchemaNode) testModule.getDataChildByName( + final ContainerSchemaNode testContainerA = (ContainerSchemaNode) testModule.dataChildByName( QName.create(testModule.getQNameModule(), "test-container-a")); assertNull(testContainerA); @@ -66,7 +66,7 @@ public class IfFeatureResolutionTest { QName.create(testModule.getQNameModule(), "test-leaf-c")); assertNotNull(testLeafC); - final ContainerSchemaNode testContainerD = (ContainerSchemaNode) testModule.getDataChildByName( + final ContainerSchemaNode testContainerD = (ContainerSchemaNode) testModule.dataChildByName( QName.create(testModule.getQNameModule(), "test-container-d")); assertNull(testContainerD); @@ -76,14 +76,14 @@ public class IfFeatureResolutionTest { final ContainerSchemaNode testSubContainerE = (ContainerSchemaNode) testContainerE.getDataChildByName( QName.create(testModule.getQNameModule(), "test-subcontainer-e")); assertNotNull(testSubContainerE); - final LeafSchemaNode testLeafE = (LeafSchemaNode) testSubContainerE.getDataChildByName( + final LeafSchemaNode testLeafE = (LeafSchemaNode) testSubContainerE.dataChildByName( QName.create(testModule.getQNameModule(), "test-leaf-e")); assertNull(testLeafE); final ContainerSchemaNode testContainerF = (ContainerSchemaNode) testModule.getDataChildByName( QName.create(testModule.getQNameModule(), "test-container-f")); assertNotNull(testContainerF); - final ContainerSchemaNode testSubContainerF = (ContainerSchemaNode) testContainerF.getDataChildByName( + final ContainerSchemaNode testSubContainerF = (ContainerSchemaNode) testContainerF.dataChildByName( QName.create(testModule.getQNameModule(), "test-subcontainer-f")); assertNull(testSubContainerF); @@ -94,10 +94,10 @@ public class IfFeatureResolutionTest { final LeafSchemaNode testLeafG = (LeafSchemaNode) testContainerG.getDataChildByName( QName.create(testModule.getQNameModule(), "test-leaf-g")); assertNotNull(testLeafG); - final LeafSchemaNode augmentingTestLeafG = (LeafSchemaNode) testContainerG.getDataChildByName( + final LeafSchemaNode augmentingTestLeafG = (LeafSchemaNode) testContainerG.dataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-leaf-g")); assertNull(augmentingTestLeafG); - final AnyXmlSchemaNode augmentingTestAnyxmlG = (AnyXmlSchemaNode) testContainerG.getDataChildByName( + final AnyxmlSchemaNode augmentingTestAnyxmlG = (AnyxmlSchemaNode) testContainerG.getDataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-anyxml-g")); assertNotNull(augmentingTestAnyxmlG); @@ -114,7 +114,7 @@ public class IfFeatureResolutionTest { ContainerSchemaNode testGroupingSubContainer = (ContainerSchemaNode) testContainerI.getDataChildByName( QName.create(testModule.getQNameModule(), "test-grouping-subcontainer")); assertNotNull(testGroupingSubContainer); - final LeafSchemaNode testGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( + final LeafSchemaNode testGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.dataChildByName( QName.create(testModule.getQNameModule(), "test-grouping-leaf")); assertNull(testGroupingLeaf); @@ -136,7 +136,7 @@ public class IfFeatureResolutionTest { final LeafSchemaNode augmentingTestGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-grouping-leaf")); assertNotNull(augmentingTestGroupingLeaf); - final LeafSchemaNode augmentingTestGroupingLeaf2 = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( + final LeafSchemaNode augmentingTestGroupingLeaf2 = (LeafSchemaNode) testGroupingSubContainer.dataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-grouping-leaf-2")); assertNull(augmentingTestGroupingLeaf2); } @@ -215,7 +215,7 @@ public class IfFeatureResolutionTest { final LeafSchemaNode augmentingTestLeafG = (LeafSchemaNode) testContainerG.getDataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-leaf-g")); assertNotNull(augmentingTestLeafG); - final AnyXmlSchemaNode augmentingTestAnyxmlG = (AnyXmlSchemaNode) testContainerG.getDataChildByName( + final AnyxmlSchemaNode augmentingTestAnyxmlG = (AnyxmlSchemaNode) testContainerG.getDataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-anyxml-g")); assertNotNull(augmentingTestAnyxmlG); @@ -286,14 +286,14 @@ public class IfFeatureResolutionTest { final ContainerSchemaNode testSubContainerE = (ContainerSchemaNode) testContainerE.getDataChildByName( QName.create(testModule.getQNameModule(), "test-subcontainer-e")); assertNotNull(testSubContainerE); - final LeafSchemaNode testLeafE = (LeafSchemaNode) testSubContainerE.getDataChildByName( + final LeafSchemaNode testLeafE = (LeafSchemaNode) testSubContainerE.dataChildByName( QName.create(testModule.getQNameModule(), "test-leaf-e")); assertNull(testLeafE); final ContainerSchemaNode testContainerF = (ContainerSchemaNode) testModule.getDataChildByName( QName.create(testModule.getQNameModule(), "test-container-f")); assertNotNull(testContainerF); - final ContainerSchemaNode testSubContainerF = (ContainerSchemaNode) testContainerF.getDataChildByName( + final ContainerSchemaNode testSubContainerF = (ContainerSchemaNode) testContainerF.dataChildByName( QName.create(testModule.getQNameModule(), "test-subcontainer-f")); assertNull(testSubContainerF); @@ -304,10 +304,10 @@ public class IfFeatureResolutionTest { final LeafSchemaNode testLeafG = (LeafSchemaNode) testContainerG.getDataChildByName( QName.create(testModule.getQNameModule(), "test-leaf-g")); assertNotNull(testLeafG); - final LeafSchemaNode augmentingTestLeafG = (LeafSchemaNode) testContainerG.getDataChildByName( + final LeafSchemaNode augmentingTestLeafG = (LeafSchemaNode) testContainerG.dataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-leaf-g")); assertNull(augmentingTestLeafG); - final AnyXmlSchemaNode augmentingTestAnyxmlG = (AnyXmlSchemaNode) testContainerG.getDataChildByName( + final AnyxmlSchemaNode augmentingTestAnyxmlG = (AnyxmlSchemaNode) testContainerG.getDataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-anyxml-g")); assertNotNull(augmentingTestAnyxmlG); @@ -324,7 +324,7 @@ public class IfFeatureResolutionTest { ContainerSchemaNode testGroupingSubContainer = (ContainerSchemaNode) testContainerI.getDataChildByName( QName.create(testModule.getQNameModule(), "test-grouping-subcontainer")); assertNotNull(testGroupingSubContainer); - LeafSchemaNode testGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( + LeafSchemaNode testGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.dataChildByName( QName.create(testModule.getQNameModule(), "test-grouping-leaf")); assertNull(testGroupingLeaf); @@ -336,13 +336,13 @@ public class IfFeatureResolutionTest { QName.create(testModule.getQNameModule(), "test-grouping-subcontainer")); assertNotNull(testGroupingSubContainer); assertEquals(1, testGroupingSubContainer.getAvailableAugmentations().size()); - final LeafSchemaNode augmentingTestGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( + final LeafSchemaNode augmentingTestGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.dataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-grouping-leaf")); assertNull(augmentingTestGroupingLeaf); - final LeafSchemaNode augmentingTestGroupingLeaf2 = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( + final LeafSchemaNode augmentingTestGroupingLeaf2 = (LeafSchemaNode) testGroupingSubContainer.dataChildByName( QName.create(testModule.getQNameModule(), "augmenting-test-grouping-leaf-2")); assertNull(augmentingTestGroupingLeaf2); - testGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.getDataChildByName( + testGroupingLeaf = (LeafSchemaNode) testGroupingSubContainer.dataChildByName( QName.create(testModule.getQNameModule(), "test-grouping-leaf")); assertNull(testGroupingLeaf); }