Search in sources :

Example 1 with SubmitEnsureLspOperationalInputBuilder

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());
}
Also used : SubmitEnsureLspOperationalInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.programming.rev181109.SubmitEnsureLspOperationalInputBuilder) ArgumentsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev200120.ensure.lsp.operational.args.ArgumentsBuilder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 SubmitEnsureLspOperationalInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.programming.rev181109.SubmitEnsureLspOperationalInputBuilder)1 ArgumentsBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.topology.pcep.rev200120.ensure.lsp.operational.args.ArgumentsBuilder)1