Mockito.doReturn(new BgpId("127.0.0.1")).when(this.rib).getBgpIdentifier();
Mockito.doReturn(true).when(this.future).cancel(true);
Mockito.doReturn(this.future).when(this.dispatcher)
- .createReconnectingClient(any(InetSocketAddress.class), any(BGPPeerRegistry.class), anyInt(), any(Optional.class));
+ .createReconnectingClient(any(InetSocketAddress.class), anyInt(), any(Optional.class));
Mockito.doReturn(this.dispatcher).when(this.rib).getDispatcher();
Mockito.doReturn(java.util.Optional.of(new BgpTableTypeImpl(Ipv4AddressFamily.class, UnicastSubsequentAddressFamily.class)))
Mockito.doNothing().when(this.bgpPeerRegistry).removePeer(any(IpAddress.class));
Mockito.doReturn("registry").when(this.bgpPeerRegistry).toString();
Mockito.doNothing().when(this.listener).close();
+ Mockito.doReturn(this.bgpPeerRegistry).when(this.dispatcher).getBGPPeerRegistry();
}
}