use of co.rsk.net.StatusResolver in project rskj by rsksmart.
the class RskWireProtocolTest method setup.
@Before
public void setup() {
config = mock(RskSystemProperties.class);
peerScoringManager = mock(PeerScoringManager.class);
messageHandler = mock(MessageHandler.class);
compositeEthereumListener = mock(CompositeEthereumListener.class);
genesis = mock(Genesis.class);
messageRecorder = mock(MessageRecorder.class);
statusResolver = mock(StatusResolver.class);
messageQueue = mock(MessageQueue.class);
channel = mock(Channel.class);
target = new RskWireProtocol(config, peerScoringManager, messageHandler, compositeEthereumListener, genesis, messageRecorder, statusResolver, messageQueue, channel);
EmbeddedChannel ch = new EmbeddedChannel();
ch.pipeline().addLast(target);
ctx = ch.pipeline().firstContext();
}
Aggregations