pool.execute(new FakeWorkItem(1));
}
@Test public void testScheduleCancel() throws Exception {
ThreadReuseExecutor pool = new ThreadReuseExecutor("test", 5); //$NON-NLS-1$
ScheduledFuture<?> future = pool.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
}
}, 0, 5, TimeUnit.MILLISECONDS);
future.cancel(true);