Преглед изворни кода

nth prime: add hint to @Ignore annotations

morrme пре 9 година
родитељ
комит
6a1f9addb2
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5
    5
      exercises/nth-prime/src/test/java/PrimeCalculatorTest.java

+ 5
- 5
exercises/nth-prime/src/test/java/PrimeCalculatorTest.java Прегледај датотеку

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