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

largest-series-product: add hint to @Ignore annotations

morrme пре 9 година
родитељ
комит
3d5e4e2240

+ 17
- 17
exercises/largest-series-product/src/test/java/LargestSeriesProductCalculatorTest.java Прегледај датотеку

@@ -24,7 +24,7 @@ public final class LargestSeriesProductCalculatorTest {
24 24
         assertEquals(expectedProduct, actualProduct);
25 25
     }
26 26
 
27
-    @Ignore
27
+    @Ignore("Remove to run test")
28 28
     @Test
29 29
     public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrder() {
30 30
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("576802143");
@@ -35,7 +35,7 @@ public final class LargestSeriesProductCalculatorTest {
35 35
         assertEquals(expectedProduct, actualProduct);
36 36
     }
37 37
 
38
-    @Ignore
38
+    @Ignore("Remove to run test")
39 39
     @Test
40 40
     public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToSearchLength() {
41 41
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("29");
@@ -46,7 +46,7 @@ public final class LargestSeriesProductCalculatorTest {
46 46
         assertEquals(expectedProduct, actualProduct);
47 47
     }
48 48
 
49
-    @Ignore
49
+    @Ignore("Remove to run test")
50 50
     @Test
51 51
     public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder() {
52 52
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
@@ -57,7 +57,7 @@ public final class LargestSeriesProductCalculatorTest {
57 57
         assertEquals(expectedProduct, actualProduct);
58 58
     }
59 59
 
60
-    @Ignore
60
+    @Ignore("Remove to run test")
61 61
     @Test
62 62
     public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOrder() {
63 63
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("1027839564");
@@ -68,7 +68,7 @@ public final class LargestSeriesProductCalculatorTest {
68 68
         assertEquals(expectedProduct, actualProduct);
69 69
     }
70 70
 
71
-    @Ignore
71
+    @Ignore("Remove to run test")
72 72
     @Test
73 73
     public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder() {
74 74
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
@@ -79,7 +79,7 @@ public final class LargestSeriesProductCalculatorTest {
79 79
         assertEquals(expectedProduct, actualProduct);
80 80
     }
81 81
 
82
-    @Ignore
82
+    @Ignore("Remove to run test")
83 83
     @Test
84 84
     public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
85 85
         final LargestSeriesProductCalculator calculator
@@ -92,7 +92,7 @@ public final class LargestSeriesProductCalculatorTest {
92 92
         assertEquals(expectedProduct, actualProduct);
93 93
     }
94 94
 
95
-    @Ignore
95
+    @Ignore("Remove to run test")
96 96
     @Test
97 97
     public void testCorrectlyCalculatesLargestProductInLongStringToSearchV2() {
98 98
         final LargestSeriesProductCalculator calculator
@@ -105,7 +105,7 @@ public final class LargestSeriesProductCalculatorTest {
105 105
         assertEquals(expectedProduct, actualProduct);
106 106
     }
107 107
 
108
-    @Ignore
108
+    @Ignore("Remove to run test")
109 109
     @Test
110 110
     public void testCorrectlyCalculatesLargestProductInLongStringToSearchFromProjectEuler() {
111 111
         final LargestSeriesProductCalculator calculator
@@ -118,7 +118,7 @@ public final class LargestSeriesProductCalculatorTest {
118 118
         assertEquals(expectedProduct, actualProduct);
119 119
     }
120 120
 
121
-    @Ignore
121
+    @Ignore("Remove to run test")
122 122
     @Test
123 123
     public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
124 124
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0000");
@@ -129,7 +129,7 @@ public final class LargestSeriesProductCalculatorTest {
129 129
         assertEquals(expectedProduct, actualProduct);
130 130
     }
131 131
 
132
-    @Ignore
132
+    @Ignore("Remove to run test")
133 133
     @Test
134 134
     public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthContainZero() {
135 135
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("99099");
@@ -140,7 +140,7 @@ public final class LargestSeriesProductCalculatorTest {
140 140
         assertEquals(expectedProduct, actualProduct);
141 141
     }
142 142
 
143
-    @Ignore
143
+    @Ignore("Remove to run test")
144 144
     @Test
145 145
     public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
146 146
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
@@ -152,7 +152,7 @@ public final class LargestSeriesProductCalculatorTest {
152 152
         calculator.calculateLargestProductForSeriesLength(4);
153 153
     }
154 154
 
155
-    @Ignore
155
+    @Ignore("Remove to run test")
156 156
     @Test
157 157
     public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch() {
158 158
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
@@ -163,7 +163,7 @@ public final class LargestSeriesProductCalculatorTest {
163 163
         assertEquals(expectedProduct, actualProduct);
164 164
     }
165 165
 
166
-    @Ignore
166
+    @Ignore("Remove to run test")
167 167
     @Test
168 168
     public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSearch() {
169 169
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
@@ -174,7 +174,7 @@ public final class LargestSeriesProductCalculatorTest {
174 174
         assertEquals(expectedProduct, actualProduct);
175 175
     }
176 176
 
177
-    @Ignore
177
+    @Ignore("Remove to run test")
178 178
     @Test
179 179
     public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
180 180
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
@@ -186,7 +186,7 @@ public final class LargestSeriesProductCalculatorTest {
186 186
         calculator.calculateLargestProductForSeriesLength(1);
187 187
     }
188 188
 
189
-    @Ignore
189
+    @Ignore("Remove to run test")
190 190
     @Test
191 191
     public void testStringToSearchContainingNonDigitCharacterIsRejected() {
192 192
         expectedException.expect(IllegalArgumentException.class);
@@ -195,7 +195,7 @@ public final class LargestSeriesProductCalculatorTest {
195 195
         new LargestSeriesProductCalculator("1234a5");
196 196
     }
197 197
 
198
-    @Ignore
198
+    @Ignore("Remove to run test")
199 199
     @Test
200 200
     public void testNegativeSeriesLengthIsRejected() {
201 201
         final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("12345");
@@ -206,7 +206,7 @@ public final class LargestSeriesProductCalculatorTest {
206 206
         calculator.calculateLargestProductForSeriesLength(-1);
207 207
     }
208 208
 
209
-    @Ignore
209
+    @Ignore("Remove to run test")
210 210
     @Test
211 211
     public void testNullStringToSearchIsRejected() {
212 212
         expectedException.expect(IllegalArgumentException.class);