Skip to content

Commit 65c4a8e

Browse files
authored
CustomSetTest : add hint to @ignore annotations
exercism#446
1 parent 2c2f2ee commit 65c4a8e

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

‎exercises/custom-set/src/test/java/CustomSetTest.java‎

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public void setsWithNoElementsAreEmpty() {
1818
}
1919

2020
@Test
21-
@Ignore
21+
@Ignore("Remove to run test")
2222
public void setsWithElementsAreNotEmpty() {
2323
final boolean actual
2424
= new CustomSet<>(Arrays.asList(1))
@@ -28,7 +28,7 @@ public void setsWithElementsAreNotEmpty() {
2828
}
2929

3030
@Test
31-
@Ignore
31+
@Ignore("Remove to run test")
3232
public void nothingIsContainedInAnEmptySet() {
3333
final boolean actual
3434
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -38,7 +38,7 @@ public void nothingIsContainedInAnEmptySet() {
3838
}
3939

4040
@Test
41-
@Ignore
41+
@Ignore("Remove to run test")
4242
public void whenTheElementIsInTheSet() {
4343
final boolean actual
4444
= new CustomSet<>(Arrays.asList(1, 2, 3))
@@ -48,7 +48,7 @@ public void whenTheElementIsInTheSet() {
4848
}
4949

5050
@Test
51-
@Ignore
51+
@Ignore("Remove to run test")
5252
public void whenTheElementIsNotInTheSet() {
5353
final boolean actual
5454
= new CustomSet<>(Arrays.asList(1, 2, 3))
@@ -58,7 +58,7 @@ public void whenTheElementIsNotInTheSet() {
5858
}
5959

6060
@Test
61-
@Ignore
61+
@Ignore("Remove to run test")
6262
public void emptySetIsASubsetOfAnotherEmptySet() {
6363
final boolean actual
6464
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -70,7 +70,7 @@ public void emptySetIsASubsetOfAnotherEmptySet() {
7070
}
7171

7272
@Test
73-
@Ignore
73+
@Ignore("Remove to run test")
7474
public void emptySetIsASubsetOfNonEemptySet() {
7575
final boolean actual
7676
= new CustomSet<>(Arrays.asList(1))
@@ -82,7 +82,7 @@ public void emptySetIsASubsetOfNonEemptySet() {
8282
}
8383

8484
@Test
85-
@Ignore
85+
@Ignore("Remove to run test")
8686
public void nonEmptySetIsNotASubsetOfEmptySet() {
8787
final boolean actual
8888
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -94,7 +94,7 @@ public void nonEmptySetIsNotASubsetOfEmptySet() {
9494
}
9595

9696
@Test
97-
@Ignore
97+
@Ignore("Remove to run test")
9898
public void setIsASubsetOfSetWithExactSameElements() {
9999
final boolean actual
100100
= new CustomSet<>(Arrays.asList(1, 2, 3))
@@ -106,7 +106,7 @@ public void setIsASubsetOfSetWithExactSameElements() {
106106
}
107107

108108
@Test
109-
@Ignore
109+
@Ignore("Remove to run test")
110110
public void setIsASubsetOfLargerSetWithSameElements() {
111111
final boolean actual
112112
= new CustomSet<>(Arrays.asList(4, 1, 2, 3))
@@ -118,7 +118,7 @@ public void setIsASubsetOfLargerSetWithSameElements() {
118118
}
119119

120120
@Test
121-
@Ignore
121+
@Ignore("Remove to run test")
122122
public void setIsNotASubsetOfSetThatDoesNotContainItsElements() {
123123
final boolean actual
124124
= new CustomSet<>(Arrays.asList(4, 1, 3))
@@ -130,7 +130,7 @@ public void setIsNotASubsetOfSetThatDoesNotContainItsElements() {
130130
}
131131

132132
@Test
133-
@Ignore
133+
@Ignore("Remove to run test")
134134
public void theEmptySetIsDisjointWithItself() {
135135
final boolean actual
136136
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -142,7 +142,7 @@ public void theEmptySetIsDisjointWithItself() {
142142
}
143143

144144
@Test
145-
@Ignore
145+
@Ignore("Remove to run test")
146146
public void emptySetIsDisjointWithNonEmptySet() {
147147
final boolean actual
148148
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -154,7 +154,7 @@ public void emptySetIsDisjointWithNonEmptySet() {
154154
}
155155

156156
@Test
157-
@Ignore
157+
@Ignore("Remove to run test")
158158
public void nonEmptySetIsDisjointWithEmptySet() {
159159
final boolean actual
160160
= new CustomSet<>(Arrays.asList(1))
@@ -166,7 +166,7 @@ public void nonEmptySetIsDisjointWithEmptySet() {
166166
}
167167

168168
@Test
169-
@Ignore
169+
@Ignore("Remove to run test")
170170
public void setsAreNotDisjointIfTheyShareAnElement() {
171171
final boolean actual
172172
= new CustomSet<>(Arrays.asList(1, 2))
@@ -178,7 +178,7 @@ public void setsAreNotDisjointIfTheyShareAnElement() {
178178
}
179179

180180
@Test
181-
@Ignore
181+
@Ignore("Remove to run test")
182182
public void setsAreDisjointIfTheyShareNoElements() {
183183
final boolean actual
184184
= new CustomSet<>(Arrays.asList(1, 2))
@@ -190,7 +190,7 @@ public void setsAreDisjointIfTheyShareNoElements() {
190190
}
191191

192192
@Test
193-
@Ignore
193+
@Ignore("Remove to run test")
194194
public void emptySetsAreEqual() {
195195
final boolean actual
196196
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -202,7 +202,7 @@ public void emptySetsAreEqual() {
202202
}
203203

204204
@Test
205-
@Ignore
205+
@Ignore("Remove to run test")
206206
public void emptySetIsNotEqualToNonEmptySet() {
207207
final boolean actual
208208
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -214,7 +214,7 @@ public void emptySetIsNotEqualToNonEmptySet() {
214214
}
215215

216216
@Test
217-
@Ignore
217+
@Ignore("Remove to run test")
218218
public void nonEmptySetIsNotEqualToEmptySet() {
219219
final boolean actual
220220
= new CustomSet<>(Arrays.asList(1, 2, 3))
@@ -226,7 +226,7 @@ public void nonEmptySetIsNotEqualToEmptySet() {
226226
}
227227

228228
@Test
229-
@Ignore
229+
@Ignore("Remove to run test")
230230
public void setsWithTheSameElementsAreEqual() {
231231
final boolean actual
232232
= new CustomSet<>(Arrays.asList(1, 2))
@@ -238,7 +238,7 @@ public void setsWithTheSameElementsAreEqual() {
238238
}
239239

240240
@Test
241-
@Ignore
241+
@Ignore("Remove to run test")
242242
public void setsWithDifferentElementsAreNotEqual() {
243243
final boolean actual
244244
= new CustomSet<>(Arrays.asList(1, 2, 3))
@@ -250,7 +250,7 @@ public void setsWithDifferentElementsAreNotEqual() {
250250
}
251251

252252
@Test
253-
@Ignore
253+
@Ignore("Remove to run test")
254254
public void addToEmptySet() {
255255
final int element = 3;
256256
final CustomSet<Integer> expected
@@ -268,7 +268,7 @@ public void addToEmptySet() {
268268
}
269269

270270
@Test
271-
@Ignore
271+
@Ignore("Remove to run test")
272272
public void addToNonEmptySet() {
273273
final int element = 3;
274274
final CustomSet<Integer> expected
@@ -286,7 +286,7 @@ public void addToNonEmptySet() {
286286
}
287287

288288
@Test
289-
@Ignore
289+
@Ignore("Remove to run test")
290290
public void addingAnExistingElementDoesNotChangeTheSet() {
291291
final int element = 3;
292292
final CustomSet<Integer> expected
@@ -303,7 +303,7 @@ public void addingAnExistingElementDoesNotChangeTheSet() {
303303
}
304304

305305
@Test
306-
@Ignore
306+
@Ignore("Remove to run test")
307307
public void intersectionOfTwoEmptySetsIsAnEmptySet() {
308308
final CustomSet<Integer> actual
309309
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -316,7 +316,7 @@ public void intersectionOfTwoEmptySetsIsAnEmptySet() {
316316
}
317317

318318
@Test
319-
@Ignore
319+
@Ignore("Remove to run test")
320320
public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
321321
final CustomSet<Integer> actual
322322
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -329,7 +329,7 @@ public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
329329
}
330330

331331
@Test
332-
@Ignore
332+
@Ignore("Remove to run test")
333333
public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() {
334334
final CustomSet<Integer> actual
335335
= new CustomSet<>(Arrays.asList(1, 2, 3, 4))
@@ -343,7 +343,7 @@ public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() {
343343
}
344344

345345
@Test
346-
@Ignore
346+
@Ignore("Remove to run test")
347347
public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() {
348348
final CustomSet<Integer> actual
349349
= new CustomSet<>(Arrays.asList(1, 2, 3))
@@ -356,7 +356,7 @@ public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() {
356356
}
357357

358358
@Test
359-
@Ignore
359+
@Ignore("Remove to run test")
360360
public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() {
361361
final CustomSet<Integer> expected
362362
= new CustomSet<>(
@@ -374,7 +374,7 @@ public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() {
374374
}
375375

376376
@Test
377-
@Ignore
377+
@Ignore("Remove to run test")
378378
public void differenceOfTwoEmptySetsIsAnEmptySet() {
379379
final CustomSet<Integer> actual
380380
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -387,7 +387,7 @@ public void differenceOfTwoEmptySetsIsAnEmptySet() {
387387
}
388388

389389
@Test
390-
@Ignore
390+
@Ignore("Remove to run test")
391391
public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
392392
final CustomSet<Integer> actual
393393
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -400,7 +400,7 @@ public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
400400
}
401401

402402
@Test
403-
@Ignore
403+
@Ignore("Remove to run test")
404404
public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
405405
final CustomSet<Integer> expected
406406
= new CustomSet<>(
@@ -418,7 +418,7 @@ public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
418418
}
419419

420420
@Test
421-
@Ignore
421+
@Ignore("Remove to run test")
422422
public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet() {
423423
final CustomSet<Integer> expected
424424
= new CustomSet<>(
@@ -436,7 +436,7 @@ public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet(
436436
}
437437

438438
@Test
439-
@Ignore
439+
@Ignore("Remove to run test")
440440
public void unionOfTwoEmptySetsIsAnEmptySet() {
441441
final CustomSet<Integer> actual
442442
= new CustomSet<>(Collections.EMPTY_LIST)
@@ -449,7 +449,7 @@ public void unionOfTwoEmptySetsIsAnEmptySet() {
449449
}
450450

451451
@Test
452-
@Ignore
452+
@Ignore("Remove to run test")
453453
public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() {
454454
final CustomSet<Integer> expected
455455
= new CustomSet<>(
@@ -467,7 +467,7 @@ public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() {
467467
}
468468

469469
@Test
470-
@Ignore
470+
@Ignore("Remove to run test")
471471
public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
472472
final CustomSet<Integer> expected
473473
= new CustomSet<>(
@@ -485,7 +485,7 @@ public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
485485
}
486486

487487
@Test
488-
@Ignore
488+
@Ignore("Remove to run test")
489489
public void unionOfTwoNonEmptySetsContainsAllUniqueElements() {
490490
final CustomSet<Integer> expected
491491
= new CustomSet<>(

0 commit comments

Comments
 (0)