use of org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.container.Unkeyed in project mdsal by opendaylight.
the class TestListSquashing method testUserOrderedList.
@Test
public void testUserOrderedList() {
final Keyed keyed = new KeyedBuilder().withKey(new KeyedKey("a")).build();
final Unkeyed unkeyed = new UnkeyedBuilder().build();
final Container cont = new ContainerBuilder().setKeyed(List.of(keyed)).setUnkeyed(List.of(unkeyed)).build();
// Non-empty Lists should be retained
assertEquals(List.of(keyed), cont.getKeyed());
assertEquals(List.of(unkeyed), cont.getUnkeyed());
}
Also used :
Container(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.Container)
KeyedBuilder(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.container.KeyedBuilder)
ContainerBuilder(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.ContainerBuilder)
KeyedKey(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.container.KeyedKey)
UnkeyedBuilder(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.container.UnkeyedBuilder)
Keyed(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.container.Keyed)
Unkeyed(org.opendaylight.yang.gen.v1.urn.test.opendaylight.mdsal298.rev180129.container.Unkeyed)
Test(org.junit.Test)