@Test public void calculateValueFourEdgeCase() { List<Integer> primes = instance.calculate(4); assertThat(primes).containsExactly(2, 3); }
@Test(expected = IllegalArgumentException.class) public void calculateValueOneEdgeCase() { instance.calculate(1); }
@Test public void calculate() { List<Integer> primes = instance.calculate(10); assertThat(primes).containsExactly(2, 3, 5, 7); }
@Test(expected = IllegalArgumentException.class) public void calculateZeroUpperBound() { instance.calculate(0); }
@Test public void getType() throws Exception { assertThat(instance.getType()).isEqualTo(AlgorithmType.PRIME_BY_REMAINDER); }