コード例 #1
0
 @Test
 public void calculateValueFourEdgeCase() {
   List<Integer> primes = instance.calculate(4);
   assertThat(primes).containsExactly(2, 3);
 }
コード例 #2
0
 @Test(expected = IllegalArgumentException.class)
 public void calculateZeroUpperBound() {
   instance.calculate(0);
 }
コード例 #3
0
 @Test(expected = IllegalArgumentException.class)
 public void calculateValueOneEdgeCase() {
   instance.calculate(1);
 }
コード例 #4
0
 @Test
 public void calculate() {
   List<Integer> primes = instance.calculate(10);
   assertThat(primes).containsExactly(2, 3, 5, 7);
 }