use of com.radixdlt.network.p2p.PeersView in project radixdlt by radixdlt.
the class PeerLivenessMonitorTest method setup.
@Before
public void setup() throws ParseException {
this.p2PConfig = P2PConfig.fromRuntimeProperties(new RuntimeProperties(new JSONObject(), new String[] {}));
this.peersView = mock(PeersView.class);
this.peerEventDispatcher = rmock(EventDispatcher.class);
this.pingEventDispatcher = rmock(RemoteEventDispatcher.class);
this.pongEventDispatcher = rmock(RemoteEventDispatcher.class);
this.pingTimeoutEventDispatcher = rmock(ScheduledEventDispatcher.class);
this.sut = new PeerLivenessMonitor(p2PConfig, peersView, peerEventDispatcher, pingEventDispatcher, pongEventDispatcher, pingTimeoutEventDispatcher);
}
Aggregations