use of net.sf.latexdraw.instrument.StatusBarController in project latexdraw by arnobl.
the class TestVersionChecker method testCheckVersionNoNewVersion.
@Test
public void testCheckVersionNoNewVersion() throws InterruptedException {
final StatusBarController controller = mock(StatusBarController.class);
final FutureTask<Void> future = new FutureTask<>(new VersionChecker(controller, new PreferencesService().getBundle()), null);
final ExecutorService taskExecutor = Executors.newFixedThreadPool(1);
taskExecutor.execute(future);
taskExecutor.shutdown();
taskExecutor.awaitTermination(5L, TimeUnit.SECONDS);
}
Aggregations