use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.TwoLevelListChangedBuilder in project controller by opendaylight.
the class ForwardedNotificationAdapterTest method createTestData.
private TwoLevelListChanged createTestData() {
final TwoLevelListChangedBuilder tb = new TwoLevelListChangedBuilder();
tb.setTopLevelList(ImmutableList.of(new TopLevelListBuilder().setKey(new TopLevelListKey("test")).build()));
return tb.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.TwoLevelListChangedBuilder in project mdsal by opendaylight.
the class LazySerializedDOMNotificationTest method basicTest.
@Test
public void basicTest() throws Exception {
BindingNormalizedNodeSerializer codec = mock(BindingNormalizedNodeSerializer.class);
final DOMNotification lazySerializedDOMNotification = LazySerializedDOMNotification.create(codec, new TwoLevelListChangedBuilder().build(), Instant.now());
ContainerNode containerNode = mock(ContainerNode.class);
doReturn(containerNode).when(codec).toNormalizedNodeNotification(any());
assertEquals(containerNode, lazySerializedDOMNotification.getBody());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.test.binding.rev140701.TwoLevelListChangedBuilder in project controller by opendaylight.
the class BackwardsCompatibleNotificationBrokerTest method createTestData.
private TwoLevelListChanged createTestData() {
final TwoLevelListChangedBuilder tb = new TwoLevelListChangedBuilder();
tb.setTopLevelList(ImmutableList.of(new TopLevelListBuilder().setKey(new TopLevelListKey("test")).build()));
return tb.build();
}
Aggregations