use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.programming.rev181109.SubmitEnsureLspOperationalInputBuilder in project bgpcep by opendaylight.
the class TopologyProgrammingTest method testSubmitEnsureLsp.
@Test
public void testSubmitEnsureLsp() {
final var captor = ArgumentCaptor.forClass(EnsureLspOperationalInput.class);
doReturn(Futures.immediateFuture(Optional.empty())).when(listener).ensureLspOperational(captor.capture());
topologyProgramming.submitEnsureLspOperational(new SubmitEnsureLspOperationalInputBuilder().setName(NAME).setNode(nodeId).setArguments(new ArgumentsBuilder().build()).build());
final var ensureLspInput = captor.getValue();
assertNotNull(ensureLspInput);
assertEquals(NAME, ensureLspInput.getName());
assertEquals(nodeId, ensureLspInput.getNode());
}
Aggregations