use of 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 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);
}
use of 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 in project mdsal by opendaylight.
the class TestCopyBuilders method testBuilderListCopy.
@Test
public void testBuilderListCopy() {
final TreeComplexUsesAugment source = new TreeComplexUsesAugmentBuilder().build();
final ComplexViaUses viaUses = new ComplexViaUsesBuilder().build();
final TreeComplexUsesAugment copied = new TreeComplexUsesAugmentBuilder(viaUses).build();
assertEquals(source, copied);
}
Aggregations