use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev200120.AddLspArgs in project bgpcep by opendaylight.
the class TopologyProgrammingTest method testSubmitAddLsp.
@Test
public void testSubmitAddLsp() {
final var captor = ArgumentCaptor.forClass(AddLspArgs.class);
doReturn(Futures.immediateFuture(Optional.empty())).when(listener).addLsp(captor.capture());
topologyProgramming.submitAddLsp(new SubmitAddLspInputBuilder().setName(NAME).setNode(nodeId).setArguments(new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev200120.add.lsp.args.ArgumentsBuilder().build()).build());
final var addLspArgs = captor.getValue();
assertNotNull(addLspArgs);
assertEquals(NAME, addLspArgs.getName());
assertEquals(nodeId, addLspArgs.getNode());
}
Aggregations