Search in sources :

Example 1 with ComplexViaUsesWithDifferentNameBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.top.choice.list.choice.in.choice.list.ComplexViaUsesWithDifferentNameBuilder in project mdsal by opendaylight.

the class CaseSubstitutionTest method choiceInGroupingSubstituted.

@Test
public void choiceInGroupingSubstituted() {
    final ChoiceList baRpc = new ChoiceListBuilder().withKey(CHOICE_FOO_KEY).setChoiceInChoiceList(new ComplexViaUsesWithDifferentNameBuilder(createComplexData()).build()).build();
    final ChoiceList baTree = new ChoiceListBuilder().withKey(CHOICE_FOO_KEY).setChoiceInChoiceList(new ComplexViaUsesBuilder(createComplexData()).build()).build();
    final NormalizedNode domTreeEntry = codecContext.toNormalizedNode(BA_CHOICE_LIST, baTree).getValue();
    final NormalizedNode domRpcEntry = codecContext.toNormalizedNode(BA_CHOICE_LIST, baRpc).getValue();
    assertEquals(domTreeEntry, domRpcEntry);
}
Also used : ComplexViaUsesBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.put.top.input.choice.list.choice.in.choice.list.ComplexViaUsesBuilder) ComplexViaUsesWithDifferentNameBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.top.choice.list.choice.in.choice.list.ComplexViaUsesWithDifferentNameBuilder) ChoiceList(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.ChoiceList) ChoiceListBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.ChoiceListBuilder) NormalizedNode(org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ComplexViaUsesBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.put.top.input.choice.list.choice.in.choice.list.ComplexViaUsesBuilder)1 ComplexViaUsesWithDifferentNameBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.augment.rev140709.top.choice.list.choice.in.choice.list.ComplexViaUsesWithDifferentNameBuilder)1 ChoiceList (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.ChoiceList)1 ChoiceListBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.ChoiceListBuilder)1 NormalizedNode (org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode)1