Skip to content

Commit d45ec1a

Browse files
authored
Merge pull request #481 from morrme/ignorelsp
largest-series-product: add hint to @ignore annotations
2 parents 93975df + 3d5e4e2 commit d45ec1a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

exercises/largest-series-product/src/test/java/LargestSeriesProductCalculatorTest.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersInOrder()
2424
assertEquals(expectedProduct, actualProduct);
2525
}
2626

27-
@Ignore
27+
@Ignore("Remove to run test")
2828
@Test
2929
public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrder() {
3030
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("576802143");
@@ -35,7 +35,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthTwoWithNumbersNotInOrde
3535
assertEquals(expectedProduct, actualProduct);
3636
}
3737

38-
@Ignore
38+
@Ignore("Remove to run test")
3939
@Test
4040
public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToSearchLength() {
4141
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("29");
@@ -46,7 +46,7 @@ public void testCorrectlyCalculatesLargestProductWhenSeriesLengthEqualsStringToS
4646
assertEquals(expectedProduct, actualProduct);
4747
}
4848

49-
@Ignore
49+
@Ignore("Remove to run test")
5050
@Test
5151
public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder() {
5252
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
@@ -57,7 +57,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersInOrder
5757
assertEquals(expectedProduct, actualProduct);
5858
}
5959

60-
@Ignore
60+
@Ignore("Remove to run test")
6161
@Test
6262
public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOrder() {
6363
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("1027839564");
@@ -68,7 +68,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthThreeWithNumbersNotInOr
6868
assertEquals(expectedProduct, actualProduct);
6969
}
7070

71-
@Ignore
71+
@Ignore("Remove to run test")
7272
@Test
7373
public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder() {
7474
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0123456789");
@@ -79,7 +79,7 @@ public void testCorrectlyCalculatesLargestProductOfLengthFiveWithNumbersInOrder(
7979
assertEquals(expectedProduct, actualProduct);
8080
}
8181

82-
@Ignore
82+
@Ignore("Remove to run test")
8383
@Test
8484
public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
8585
final LargestSeriesProductCalculator calculator
@@ -92,7 +92,7 @@ public void testCorrectlyCalculatesLargestProductInLongStringToSearchV1() {
9292
assertEquals(expectedProduct, actualProduct);
9393
}
9494

95-
@Ignore
95+
@Ignore("Remove to run test")
9696
@Test
9797
public void testCorrectlyCalculatesLargestProductInLongStringToSearchV2() {
9898
final LargestSeriesProductCalculator calculator
@@ -105,7 +105,7 @@ public void testCorrectlyCalculatesLargestProductInLongStringToSearchV2() {
105105
assertEquals(expectedProduct, actualProduct);
106106
}
107107

108-
@Ignore
108+
@Ignore("Remove to run test")
109109
@Test
110110
public void testCorrectlyCalculatesLargestProductInLongStringToSearchFromProjectEuler() {
111111
final LargestSeriesProductCalculator calculator
@@ -118,7 +118,7 @@ public void testCorrectlyCalculatesLargestProductInLongStringToSearchFromProject
118118
assertEquals(expectedProduct, actualProduct);
119119
}
120120

121-
@Ignore
121+
@Ignore("Remove to run test")
122122
@Test
123123
public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
124124
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("0000");
@@ -129,7 +129,7 @@ public void testCorrectlyCalculatesLargestProductOfZeroIfAllDigitsAreZeroes() {
129129
assertEquals(expectedProduct, actualProduct);
130130
}
131131

132-
@Ignore
132+
@Ignore("Remove to run test")
133133
@Test
134134
public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthContainZero() {
135135
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("99099");
@@ -140,7 +140,7 @@ public void testCorrectlyCalculatesLargestProductOfZeroIfAllSeriesOfGivenLengthC
140140
assertEquals(expectedProduct, actualProduct);
141141
}
142142

143-
@Ignore
143+
@Ignore("Remove to run test")
144144
@Test
145145
public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
146146
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
@@ -152,7 +152,7 @@ public void testSeriesLengthLongerThanLengthOfStringToTestIsRejected() {
152152
calculator.calculateLargestProductForSeriesLength(4);
153153
}
154154

155-
@Ignore
155+
@Ignore("Remove to run test")
156156
@Test
157157
public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch() {
158158
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
@@ -163,7 +163,7 @@ public void testCorrectlyCalculatesLargestProductOfLength0ForEmptyStringToSearch
163163
assertEquals(expectedProduct, actualProduct);
164164
}
165165

166-
@Ignore
166+
@Ignore("Remove to run test")
167167
@Test
168168
public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSearch() {
169169
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("123");
@@ -174,7 +174,7 @@ public void testCorrectlyCalculatesLargestProductOfLength0ForNonEmptyStringToSea
174174
assertEquals(expectedProduct, actualProduct);
175175
}
176176

177-
@Ignore
177+
@Ignore("Remove to run test")
178178
@Test
179179
public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
180180
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("");
@@ -186,7 +186,7 @@ public void testEmptyStringToSearchAndSeriesOfNonZeroLengthIsRejected() {
186186
calculator.calculateLargestProductForSeriesLength(1);
187187
}
188188

189-
@Ignore
189+
@Ignore("Remove to run test")
190190
@Test
191191
public void testStringToSearchContainingNonDigitCharacterIsRejected() {
192192
expectedException.expect(IllegalArgumentException.class);
@@ -195,7 +195,7 @@ public void testStringToSearchContainingNonDigitCharacterIsRejected() {
195195
new LargestSeriesProductCalculator("1234a5");
196196
}
197197

198-
@Ignore
198+
@Ignore("Remove to run test")
199199
@Test
200200
public void testNegativeSeriesLengthIsRejected() {
201201
final LargestSeriesProductCalculator calculator = new LargestSeriesProductCalculator("12345");
@@ -206,7 +206,7 @@ public void testNegativeSeriesLengthIsRejected() {
206206
calculator.calculateLargestProductForSeriesLength(-1);
207207
}
208208

209-
@Ignore
209+
@Ignore("Remove to run test")
210210
@Test
211211
public void testNullStringToSearchIsRejected() {
212212
expectedException.expect(IllegalArgumentException.class);

0 commit comments

Comments
 (0)