@Test public void calculateValueFourEdgeCase() { List<Integer> primes = instance.calculate(4); assertThat(primes).containsExactly(2, 3); }
@Test(expected = IllegalArgumentException.class) public void calculateZeroUpperBound() { instance.calculate(0); }
@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); }