use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.peer.rpc.rev171207.ResetSessionInput 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());
}
Aggregations