Fixed tests
This commit is contained in:
parent
489b8968e0
commit
71124d7b01
@ -69,6 +69,8 @@ public class DefaultMessageListenerTest extends TestBase {
|
||||
when(ctx.getLabeler()).thenReturn(mock(Labeler.class));
|
||||
|
||||
listener = new DefaultMessageListener(mock(Labeler.class), mock(BitmessageContext.Listener.class));
|
||||
when(ctx.getNetworkListener()).thenReturn(listener);
|
||||
listener.setContext(ctx);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -66,6 +66,7 @@ public class ProofOfWorkServiceTest {
|
||||
when(ctx.getNetworkHandler()).thenReturn(networkHandler);
|
||||
when(ctx.getMessageRepository()).thenReturn(messageRepo);
|
||||
when(ctx.getLabeler()).thenReturn(mock(Labeler.class));
|
||||
when(ctx.getNetworkListener()).thenReturn(mock(NetworkHandler.MessageListener.class));
|
||||
|
||||
proofOfWorkService = new ProofOfWorkService();
|
||||
proofOfWorkService.setContext(ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user