use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.md.sal.test.listener.rev150825.ListenerTestBuilder in project controller by opendaylight.
the class Bug4513Test method writeListItem.
private ListItem writeListItem() {
WriteTransaction writeTransaction = getDataBroker().newWriteOnlyTransaction();
final ListItem item = new ListItemBuilder().setSip("name").setOp(43L).build();
ListenerTestBuilder builder = new ListenerTestBuilder().setListItem(Arrays.asList(item));
writeTransaction.put(LogicalDatastoreType.OPERATIONAL, InstanceIdentifier.builder(ListenerTest.class).build(), builder.build());
assertCommit(writeTransaction.submit());
return item;
}
Aggregations