use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.two.level.list.ChoiceList 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);
}
Aggregations