@Test public void testRandoms() { finder.setExecutorService(Executors.newCachedThreadPool()); long numberToFind = 100; List<Long> list = finder.makeRandoms(numberToFind); assertEquals(numberToFind * 100000, list.size()); }
@Test public void testPrimes() { finder.setExecutorService(Executors.newCachedThreadPool()); long numberToFind = 100000; List<Long> list = finder.findPrimes(numberToFind); assertTrue(list.size() == numberToFind); }