Search in sources :

Example 1 with ResetSessionInputBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.peer.rpc.rev171207.ResetSessionInputBuilder in project bgpcep by opendaylight.

the class BgpPeerRpcTest method testResetSessionRequestSuccessRequest.

@Test
public void testResetSessionRequestSuccessRequest() throws InterruptedException, ExecutionException {
    Mockito.doReturn(Futures.immediateFuture(null)).when(this.peerRpcs).releaseConnection();
    final ResetSessionInput input = new ResetSessionInputBuilder().setPeerRef(this.peer).build();
    final Future<RpcResult<Void>> result = this.rpc.resetSession(input);
    assertTrue(result.get().getErrors().isEmpty());
}
Also used : ResetSessionInput(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.peer.rpc.rev171207.ResetSessionInput) RpcResult(org.opendaylight.yangtools.yang.common.RpcResult) ResetSessionInputBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.peer.rpc.rev171207.ResetSessionInputBuilder) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ResetSessionInput (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.peer.rpc.rev171207.ResetSessionInput)1 ResetSessionInputBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.peer.rpc.rev171207.ResetSessionInputBuilder)1 RpcResult (org.opendaylight.yangtools.yang.common.RpcResult)1