Quellcode durchsuchen

CustomSetTest : add hint to @Ignore annotations

#446
Melany Diaz vor 9 Jahren
Ursprung
Commit
65c4a8e267
1 geänderte Dateien mit 36 neuen und 36 gelöschten Zeilen
  1. 36
    36
      exercises/custom-set/src/test/java/CustomSetTest.java

+ 36
- 36
exercises/custom-set/src/test/java/CustomSetTest.java Datei anzeigen

18
     }
18
     }
19
 
19
 
20
     @Test
20
     @Test
21
-    @Ignore
21
+    @Ignore("Remove to run test")
22
     public void setsWithElementsAreNotEmpty() {
22
     public void setsWithElementsAreNotEmpty() {
23
         final boolean actual
23
         final boolean actual
24
                 = new CustomSet<>(Arrays.asList(1))
24
                 = new CustomSet<>(Arrays.asList(1))
28
     }
28
     }
29
 
29
 
30
     @Test
30
     @Test
31
-    @Ignore
31
+    @Ignore("Remove to run test")
32
     public void nothingIsContainedInAnEmptySet() {
32
     public void nothingIsContainedInAnEmptySet() {
33
         final boolean actual
33
         final boolean actual
34
                 = new CustomSet<>(Collections.EMPTY_LIST)
34
                 = new CustomSet<>(Collections.EMPTY_LIST)
38
     }
38
     }
39
 
39
 
40
     @Test
40
     @Test
41
-    @Ignore
41
+    @Ignore("Remove to run test")
42
     public void whenTheElementIsInTheSet() {
42
     public void whenTheElementIsInTheSet() {
43
         final boolean actual
43
         final boolean actual
44
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
44
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
48
     }
48
     }
49
 
49
 
50
     @Test
50
     @Test
51
-    @Ignore
51
+    @Ignore("Remove to run test")
52
     public void whenTheElementIsNotInTheSet() {
52
     public void whenTheElementIsNotInTheSet() {
53
         final boolean actual
53
         final boolean actual
54
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
54
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
58
     }
58
     }
59
 
59
 
60
     @Test
60
     @Test
61
-    @Ignore
61
+    @Ignore("Remove to run test")
62
     public void emptySetIsASubsetOfAnotherEmptySet() {
62
     public void emptySetIsASubsetOfAnotherEmptySet() {
63
         final boolean actual
63
         final boolean actual
64
                 = new CustomSet<>(Collections.EMPTY_LIST)
64
                 = new CustomSet<>(Collections.EMPTY_LIST)
70
     }
70
     }
71
 
71
 
72
     @Test
72
     @Test
73
-    @Ignore
73
+    @Ignore("Remove to run test")
74
     public void emptySetIsASubsetOfNonEemptySet() {
74
     public void emptySetIsASubsetOfNonEemptySet() {
75
         final boolean actual
75
         final boolean actual
76
                 = new CustomSet<>(Arrays.asList(1))
76
                 = new CustomSet<>(Arrays.asList(1))
82
     }
82
     }
83
 
83
 
84
     @Test
84
     @Test
85
-    @Ignore
85
+    @Ignore("Remove to run test")
86
     public void nonEmptySetIsNotASubsetOfEmptySet() {
86
     public void nonEmptySetIsNotASubsetOfEmptySet() {
87
         final boolean actual
87
         final boolean actual
88
                 = new CustomSet<>(Collections.EMPTY_LIST)
88
                 = new CustomSet<>(Collections.EMPTY_LIST)
94
     }
94
     }
95
 
95
 
96
     @Test
96
     @Test
97
-    @Ignore
97
+    @Ignore("Remove to run test")
98
     public void setIsASubsetOfSetWithExactSameElements() {
98
     public void setIsASubsetOfSetWithExactSameElements() {
99
         final boolean actual
99
         final boolean actual
100
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
100
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
106
     }
106
     }
107
 
107
 
108
     @Test
108
     @Test
109
-    @Ignore
109
+    @Ignore("Remove to run test")
110
     public void setIsASubsetOfLargerSetWithSameElements() {
110
     public void setIsASubsetOfLargerSetWithSameElements() {
111
         final boolean actual
111
         final boolean actual
112
                 = new CustomSet<>(Arrays.asList(4, 1, 2, 3))
112
                 = new CustomSet<>(Arrays.asList(4, 1, 2, 3))
118
     }
118
     }
119
 
119
 
120
     @Test
120
     @Test
121
-    @Ignore
121
+    @Ignore("Remove to run test")
122
     public void setIsNotASubsetOfSetThatDoesNotContainItsElements() {
122
     public void setIsNotASubsetOfSetThatDoesNotContainItsElements() {
123
         final boolean actual
123
         final boolean actual
124
                 = new CustomSet<>(Arrays.asList(4, 1, 3))
124
                 = new CustomSet<>(Arrays.asList(4, 1, 3))
130
     }
130
     }
131
 
131
 
132
     @Test
132
     @Test
133
-    @Ignore
133
+    @Ignore("Remove to run test")
134
     public void theEmptySetIsDisjointWithItself() {
134
     public void theEmptySetIsDisjointWithItself() {
135
         final boolean actual
135
         final boolean actual
136
                 = new CustomSet<>(Collections.EMPTY_LIST)
136
                 = new CustomSet<>(Collections.EMPTY_LIST)
142
     }
142
     }
143
 
143
 
144
     @Test
144
     @Test
145
-    @Ignore
145
+    @Ignore("Remove to run test")
146
     public void emptySetIsDisjointWithNonEmptySet() {
146
     public void emptySetIsDisjointWithNonEmptySet() {
147
         final boolean actual
147
         final boolean actual
148
                 = new CustomSet<>(Collections.EMPTY_LIST)
148
                 = new CustomSet<>(Collections.EMPTY_LIST)
154
     }
154
     }
155
 
155
 
156
     @Test
156
     @Test
157
-    @Ignore
157
+    @Ignore("Remove to run test")
158
     public void nonEmptySetIsDisjointWithEmptySet() {
158
     public void nonEmptySetIsDisjointWithEmptySet() {
159
         final boolean actual
159
         final boolean actual
160
                 = new CustomSet<>(Arrays.asList(1))
160
                 = new CustomSet<>(Arrays.asList(1))
166
     }
166
     }
167
 
167
 
168
     @Test
168
     @Test
169
-    @Ignore
169
+    @Ignore("Remove to run test")
170
     public void setsAreNotDisjointIfTheyShareAnElement() {
170
     public void setsAreNotDisjointIfTheyShareAnElement() {
171
         final boolean actual
171
         final boolean actual
172
                 = new CustomSet<>(Arrays.asList(1, 2))
172
                 = new CustomSet<>(Arrays.asList(1, 2))
178
     }
178
     }
179
 
179
 
180
     @Test
180
     @Test
181
-    @Ignore
181
+    @Ignore("Remove to run test")
182
     public void setsAreDisjointIfTheyShareNoElements() {
182
     public void setsAreDisjointIfTheyShareNoElements() {
183
         final boolean actual
183
         final boolean actual
184
                 = new CustomSet<>(Arrays.asList(1, 2))
184
                 = new CustomSet<>(Arrays.asList(1, 2))
190
     }
190
     }
191
 
191
 
192
     @Test
192
     @Test
193
-    @Ignore
193
+    @Ignore("Remove to run test")
194
     public void emptySetsAreEqual() {
194
     public void emptySetsAreEqual() {
195
         final boolean actual
195
         final boolean actual
196
                 = new CustomSet<>(Collections.EMPTY_LIST)
196
                 = new CustomSet<>(Collections.EMPTY_LIST)
202
     }
202
     }
203
 
203
 
204
     @Test
204
     @Test
205
-    @Ignore
205
+    @Ignore("Remove to run test")
206
     public void emptySetIsNotEqualToNonEmptySet() {
206
     public void emptySetIsNotEqualToNonEmptySet() {
207
         final boolean actual
207
         final boolean actual
208
                 = new CustomSet<>(Collections.EMPTY_LIST)
208
                 = new CustomSet<>(Collections.EMPTY_LIST)
214
     }
214
     }
215
 
215
 
216
     @Test
216
     @Test
217
-    @Ignore
217
+    @Ignore("Remove to run test")
218
     public void nonEmptySetIsNotEqualToEmptySet() {
218
     public void nonEmptySetIsNotEqualToEmptySet() {
219
         final boolean actual
219
         final boolean actual
220
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
220
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
226
     }
226
     }
227
 
227
 
228
     @Test
228
     @Test
229
-    @Ignore
229
+    @Ignore("Remove to run test")
230
     public void setsWithTheSameElementsAreEqual() {
230
     public void setsWithTheSameElementsAreEqual() {
231
         final boolean actual
231
         final boolean actual
232
                 = new CustomSet<>(Arrays.asList(1, 2))
232
                 = new CustomSet<>(Arrays.asList(1, 2))
238
     }
238
     }
239
 
239
 
240
     @Test
240
     @Test
241
-    @Ignore
241
+    @Ignore("Remove to run test")
242
     public void setsWithDifferentElementsAreNotEqual() {
242
     public void setsWithDifferentElementsAreNotEqual() {
243
         final boolean actual
243
         final boolean actual
244
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
244
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
250
     }
250
     }
251
 
251
 
252
     @Test
252
     @Test
253
-    @Ignore
253
+    @Ignore("Remove to run test")
254
     public void addToEmptySet() {
254
     public void addToEmptySet() {
255
         final int element = 3;
255
         final int element = 3;
256
         final CustomSet<Integer> expected
256
         final CustomSet<Integer> expected
268
     }
268
     }
269
 
269
 
270
     @Test
270
     @Test
271
-    @Ignore
271
+    @Ignore("Remove to run test")
272
     public void addToNonEmptySet() {
272
     public void addToNonEmptySet() {
273
         final int element = 3;
273
         final int element = 3;
274
         final CustomSet<Integer> expected
274
         final CustomSet<Integer> expected
286
     }
286
     }
287
 
287
 
288
     @Test
288
     @Test
289
-    @Ignore
289
+    @Ignore("Remove to run test")
290
     public void addingAnExistingElementDoesNotChangeTheSet() {
290
     public void addingAnExistingElementDoesNotChangeTheSet() {
291
         final int element = 3;
291
         final int element = 3;
292
         final CustomSet<Integer> expected
292
         final CustomSet<Integer> expected
303
     }
303
     }
304
 
304
 
305
     @Test
305
     @Test
306
-    @Ignore
306
+    @Ignore("Remove to run test")
307
     public void intersectionOfTwoEmptySetsIsAnEmptySet() {
307
     public void intersectionOfTwoEmptySetsIsAnEmptySet() {
308
         final CustomSet<Integer> actual
308
         final CustomSet<Integer> actual
309
                 = new CustomSet<>(Collections.EMPTY_LIST)
309
                 = new CustomSet<>(Collections.EMPTY_LIST)
316
     }
316
     }
317
 
317
 
318
     @Test
318
     @Test
319
-    @Ignore
319
+    @Ignore("Remove to run test")
320
     public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
320
     public void intersectionOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
321
         final CustomSet<Integer> actual
321
         final CustomSet<Integer> actual
322
                 = new CustomSet<>(Collections.EMPTY_LIST)
322
                 = new CustomSet<>(Collections.EMPTY_LIST)
329
     }
329
     }
330
 
330
 
331
     @Test
331
     @Test
332
-    @Ignore
332
+    @Ignore("Remove to run test")
333
     public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() {
333
     public void intersectionOfANonEmptySetAndAnEmptySetIsAnEmptySet() {
334
         final CustomSet<Integer> actual
334
         final CustomSet<Integer> actual
335
                 = new CustomSet<>(Arrays.asList(1, 2, 3, 4))
335
                 = new CustomSet<>(Arrays.asList(1, 2, 3, 4))
343
     }
343
     }
344
 
344
 
345
     @Test
345
     @Test
346
-    @Ignore
346
+    @Ignore("Remove to run test")
347
     public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() {
347
     public void intersectionOfTwoSetsWithNoSharedElementsIsAnEmptySet() {
348
         final CustomSet<Integer> actual
348
         final CustomSet<Integer> actual
349
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
349
                 = new CustomSet<>(Arrays.asList(1, 2, 3))
356
     }
356
     }
357
 
357
 
358
     @Test
358
     @Test
359
-    @Ignore
359
+    @Ignore("Remove to run test")
360
     public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() {
360
     public void intersectionOfTwoSetsWithSharedElementsIsASetOfTheSharedElements() {
361
         final CustomSet<Integer> expected
361
         final CustomSet<Integer> expected
362
                 = new CustomSet<>(
362
                 = new CustomSet<>(
374
     }
374
     }
375
 
375
 
376
     @Test
376
     @Test
377
-    @Ignore
377
+    @Ignore("Remove to run test")
378
     public void differenceOfTwoEmptySetsIsAnEmptySet() {
378
     public void differenceOfTwoEmptySetsIsAnEmptySet() {
379
         final CustomSet<Integer> actual
379
         final CustomSet<Integer> actual
380
                 = new CustomSet<>(Collections.EMPTY_LIST)
380
                 = new CustomSet<>(Collections.EMPTY_LIST)
387
     }
387
     }
388
 
388
 
389
     @Test
389
     @Test
390
-    @Ignore
390
+    @Ignore("Remove to run test")
391
     public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
391
     public void differenceOfAnEmptySetAndNonEmptySetIsAnEmptySet() {
392
         final CustomSet<Integer> actual
392
         final CustomSet<Integer> actual
393
                 = new CustomSet<>(Collections.EMPTY_LIST)
393
                 = new CustomSet<>(Collections.EMPTY_LIST)
400
     }
400
     }
401
 
401
 
402
     @Test
402
     @Test
403
-    @Ignore
403
+    @Ignore("Remove to run test")
404
     public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
404
     public void differenceOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
405
         final CustomSet<Integer> expected
405
         final CustomSet<Integer> expected
406
                 = new CustomSet<>(
406
                 = new CustomSet<>(
418
     }
418
     }
419
 
419
 
420
     @Test
420
     @Test
421
-    @Ignore
421
+    @Ignore("Remove to run test")
422
     public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet() {
422
     public void differenceOfTwoNonEmptySetsIsASetOfElementsThatAreOnlyInTheFirstSet() {
423
         final CustomSet<Integer> expected
423
         final CustomSet<Integer> expected
424
                 = new CustomSet<>(
424
                 = new CustomSet<>(
436
     }
436
     }
437
 
437
 
438
     @Test
438
     @Test
439
-    @Ignore
439
+    @Ignore("Remove to run test")
440
     public void unionOfTwoEmptySetsIsAnEmptySet() {
440
     public void unionOfTwoEmptySetsIsAnEmptySet() {
441
         final CustomSet<Integer> actual
441
         final CustomSet<Integer> actual
442
                 = new CustomSet<>(Collections.EMPTY_LIST)
442
                 = new CustomSet<>(Collections.EMPTY_LIST)
449
     }
449
     }
450
 
450
 
451
     @Test
451
     @Test
452
-    @Ignore
452
+    @Ignore("Remove to run test")
453
     public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() {
453
     public void unionOfAnEmptySetAndNonEmptySetIsTheNonEmptySet() {
454
         final CustomSet<Integer> expected
454
         final CustomSet<Integer> expected
455
                 = new CustomSet<>(
455
                 = new CustomSet<>(
467
     }
467
     }
468
 
468
 
469
     @Test
469
     @Test
470
-    @Ignore
470
+    @Ignore("Remove to run test")
471
     public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
471
     public void unionOfANonEmptySetAndAnEmptySetIsTheNonEmptySet() {
472
         final CustomSet<Integer> expected
472
         final CustomSet<Integer> expected
473
                 = new CustomSet<>(
473
                 = new CustomSet<>(
485
     }
485
     }
486
 
486
 
487
     @Test
487
     @Test
488
-    @Ignore
488
+    @Ignore("Remove to run test")
489
     public void unionOfTwoNonEmptySetsContainsAllUniqueElements() {
489
     public void unionOfTwoNonEmptySetsContainsAllUniqueElements() {
490
         final CustomSet<Integer> expected
490
         final CustomSet<Integer> expected
491
                 = new CustomSet<>(
491
                 = new CustomSet<>(