Bladeren bron

Merge pull request #464 from morrme/fix-444

perfect-numbers: add hint to @Ignore annotations per #444
FridaTveit 9 jaren geleden
bovenliggende
commit
2febf922d1
1 gewijzigde bestanden met toevoegingen van 12 en 12 verwijderingen
  1. 12
    12
      exercises/perfect-numbers/src/test/java/NaturalNumberTest.java

+ 12
- 12
exercises/perfect-numbers/src/test/java/NaturalNumberTest.java Bestand weergeven

@@ -23,61 +23,61 @@ public final class NaturalNumberTest {
23 23
         assertEquals(Classification.PERFECT, new NaturalNumber(6).getClassification());
24 24
     }
25 25
 
26
-    @Ignore
26
+    @Ignore("Remove to run test")
27 27
     @Test
28 28
     public void testMediumPerfectNumberIsClassifiedCorrectly() {
29 29
         assertEquals(Classification.PERFECT, new NaturalNumber(28).getClassification());
30 30
     }
31 31
 
32
-    @Ignore
32
+    @Ignore("Remove to run test")
33 33
     @Test
34 34
     public void testLargePerfectNumberIsClassifiedCorrectly() {
35 35
         assertEquals(Classification.PERFECT, new NaturalNumber(33550336).getClassification());
36 36
     }
37 37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39 39
     @Test
40 40
     public void testSmallAbundantNumberIsClassifiedCorrectly() {
41 41
         assertEquals(Classification.ABUNDANT, new NaturalNumber(12).getClassification());
42 42
     }
43 43
 
44
-    @Ignore
44
+    @Ignore("Remove to run test")
45 45
     @Test
46 46
     public void testMediumAbundantNumberIsClassifiedCorrectly() {
47 47
         assertEquals(Classification.ABUNDANT, new NaturalNumber(30).getClassification());
48 48
     }
49 49
 
50
-    @Ignore
50
+    @Ignore("Remove to run test")
51 51
     @Test
52 52
     public void testLargeAbundantNumberIsClassifiedCorrectly() {
53 53
         assertEquals(Classification.ABUNDANT, new NaturalNumber(33550335).getClassification());
54 54
     }
55 55
 
56
-    @Ignore
56
+    @Ignore("Remove to run test")
57 57
     @Test
58 58
     public void testSmallestPrimeDeficientNumberIsClassifiedCorrectly() {
59 59
         assertEquals(Classification.DEFICIENT, new NaturalNumber(2).getClassification());
60 60
     }
61 61
 
62
-    @Ignore
62
+    @Ignore("Remove to run test")
63 63
     @Test
64 64
     public void testSmallestNonPrimeDeficientNumberIsClassifiedCorrectly() {
65 65
         assertEquals(Classification.DEFICIENT, new NaturalNumber(4).getClassification());
66 66
     }
67 67
 
68
-    @Ignore
68
+    @Ignore("Remove to run test")
69 69
     @Test
70 70
     public void testMediumDeficientNumberIsClassifiedCorrectly() {
71 71
         assertEquals(Classification.DEFICIENT, new NaturalNumber(32).getClassification());
72 72
     }
73 73
 
74
-    @Ignore
74
+    @Ignore("Remove to run test")
75 75
     @Test
76 76
     public void testLargeDeficientNumberIsClassifiedCorrectly() {
77 77
         assertEquals(Classification.DEFICIENT, new NaturalNumber(33550337).getClassification());
78 78
     }
79 79
 
80
-    @Ignore
80
+    @Ignore("Remove to run test")
81 81
     @Test
82 82
     /*
83 83
      * The number 1 has no proper divisors (https://en.wikipedia.org/wiki/Divisor#Further_notions_and_facts), and the
@@ -87,7 +87,7 @@ public final class NaturalNumberTest {
87 87
         assertEquals(Classification.DEFICIENT, new NaturalNumber(1).getClassification());
88 88
     }
89 89
 
90
-    @Ignore
90
+    @Ignore("Remove to run test")
91 91
     @Test
92 92
     public void testThatNonNegativeIntegerIsRejected() {
93 93
         expectedException.expect(IllegalArgumentException.class);
@@ -96,7 +96,7 @@ public final class NaturalNumberTest {
96 96
         new NaturalNumber(0);
97 97
     }
98 98
 
99
-    @Ignore
99
+    @Ignore("Remove to run test")
100 100
     @Test
101 101
     public void testThatNegativeIntegerIsRejected() {
102 102
         expectedException.expect(IllegalArgumentException.class);