Ver código fonte

nth prime: add hint to @Ignore annotations

morrme 9 anos atrás
pai
commit
6a1f9addb2

+ 5
- 5
exercises/nth-prime/src/test/java/PrimeCalculatorTest.java Ver arquivo

1
 import org.junit.Before;
1
 import org.junit.Before;
2
-import org.junit.Ignore;
2
+import org.junit.@Ignore("Remove to run test");
3
 import org.junit.Rule;
3
 import org.junit.Rule;
4
 import org.junit.Test;
4
 import org.junit.Test;
5
 import org.junit.rules.ExpectedException;
5
 import org.junit.rules.ExpectedException;
23
         assertThat(primeCalculator.nth(1), is(2));
23
         assertThat(primeCalculator.nth(1), is(2));
24
     }
24
     }
25
 
25
 
26
-    @Ignore
26
+    @@Ignore("Remove to run test")
27
     @Test
27
     @Test
28
     public void testSecondPrime() {
28
     public void testSecondPrime() {
29
         assertThat(primeCalculator.nth(2), is(3));
29
         assertThat(primeCalculator.nth(2), is(3));
30
     }
30
     }
31
 
31
 
32
-    @Ignore
32
+    @@Ignore("Remove to run test")
33
     @Test
33
     @Test
34
     public void testSixthPrime() {
34
     public void testSixthPrime() {
35
         assertThat(primeCalculator.nth(6), is(13));
35
         assertThat(primeCalculator.nth(6), is(13));
36
     }
36
     }
37
 
37
 
38
-    @Ignore
38
+    @@Ignore("Remove to run test")
39
     @Test
39
     @Test
40
     public void testBigPrime() {
40
     public void testBigPrime() {
41
         assertThat(primeCalculator.nth(10001), is(104743));
41
         assertThat(primeCalculator.nth(10001), is(104743));
42
     }
42
     }
43
 
43
 
44
-    @Ignore
44
+    @@Ignore("Remove to run test")
45
     @Test
45
     @Test
46
     public void testUndefinedPrime() {
46
     public void testUndefinedPrime() {
47
         thrown.expect(IllegalArgumentException.class);
47
         thrown.expect(IllegalArgumentException.class);