Fix test and poller instantiation

This commit is contained in:
goapunk
2018-05-23 14:28:51 +02:00
parent c6b88b51f0
commit 3793cb841b
2 changed files with 8 additions and 10 deletions

View File

@@ -40,9 +40,7 @@ public class PluginManagerImplTest extends BrambleTestCase {
setThreadingPolicy(new Synchroniser());
}};
Executor ioExecutor = Executors.newSingleThreadExecutor();
RejectedExecutionHandler policy =
new ScheduledThreadPoolExecutor.DiscardPolicy();
ScheduledExecutorService scheduler = new ScheduledThreadPoolExecutor(1, policy);
ScheduledExecutorService scheduler = context.mock(ScheduledExecutorService.class);
SecureRandom random = new SecureRandom();
Clock clock = context.mock(Clock.class);
EventBus eventBus = context.mock(EventBus.class);