Skip to content

Commit 765c9d0

Browse files
authored
All @ignore decorators removed above tests in concept exercises (exercism#2079)
* All @ignore decorators removed above tests in concept exercises * unused imports of ignore annotation removed
1 parent 5c650a7 commit 765c9d0

File tree

15 files changed

+0
-213
lines changed

15 files changed

+0
-213
lines changed

exercises/concept/annalyns-infiltration/src/test/java/AnnalynsInfiltrationTest.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import org.junit.Ignore;
21
import org.junit.Test;
32
import static org.assertj.core.api.Assertions.assertThat;
43

@@ -10,14 +9,12 @@ public void cannot_execute_fast_attack_if_knight_is_awake() {
109
}
1110

1211
@Test
13-
@Ignore
1412
public void can_execute_fast_attack_if_knight_is_sleeping() {
1513
boolean knightIsAwake = false;
1614
assertThat(AnnalynsInfiltration.canFastAttack(knightIsAwake)).isTrue();
1715
}
1816

1917
@Test
20-
@Ignore
2118
public void cannot_spy_if_everyone_is_sleeping() {
2219
boolean knightIsAwake = false;
2320
boolean archerIsAwake = false;
@@ -26,7 +23,6 @@ public void cannot_spy_if_everyone_is_sleeping() {
2623
}
2724

2825
@Test
29-
@Ignore
3026
public void can_spy_if_everyone_but_knight_is_sleeping() {
3127
boolean knightIsAwake = true;
3228
boolean archerIsAwake = false;
@@ -35,7 +31,6 @@ public void can_spy_if_everyone_but_knight_is_sleeping() {
3531
}
3632

3733
@Test
38-
@Ignore
3934
public void can_spy_if_everyone_but_archer_is_sleeping() {
4035
boolean knightIsAwake = false;
4136
boolean archerIsAwake = true;
@@ -44,7 +39,6 @@ public void can_spy_if_everyone_but_archer_is_sleeping() {
4439
}
4540

4641
@Test
47-
@Ignore
4842
public void can_spy_if_everyone_but_prisoner_is_sleeping() {
4943
boolean knightIsAwake = false;
5044
boolean archerIsAwake = false;
@@ -53,7 +47,6 @@ public void can_spy_if_everyone_but_prisoner_is_sleeping() {
5347
}
5448

5549
@Test
56-
@Ignore
5750
public void can_spy_if_only_knight_is_sleeping() {
5851
boolean knightIsAwake = false;
5952
boolean archerIsAwake = true;
@@ -62,7 +55,6 @@ public void can_spy_if_only_knight_is_sleeping() {
6255
}
6356

6457
@Test
65-
@Ignore
6658
public void can_spy_if_only_archer_is_sleeping() {
6759
boolean knightIsAwake = true;
6860
boolean archerIsAwake = false;
@@ -71,7 +63,6 @@ public void can_spy_if_only_archer_is_sleeping() {
7163
}
7264

7365
@Test
74-
@Ignore
7566
public void can_spy_if_only_prisoner_is_sleeping() {
7667
boolean knightIsAwake = true;
7768
boolean archerIsAwake = true;
@@ -80,7 +71,6 @@ public void can_spy_if_only_prisoner_is_sleeping() {
8071
}
8172

8273
@Test
83-
@Ignore
8474
public void can_spy_if_everyone_is_awake() {
8575
boolean knightIsAwake = true;
8676
boolean archerIsAwake = true;
@@ -89,39 +79,34 @@ public void can_spy_if_everyone_is_awake() {
8979
}
9080

9181
@Test
92-
@Ignore
9382
public void can_signal_prisoner_if_archer_is_sleeping_and_prisoner_is_awake() {
9483
boolean archerIsAwake = false;
9584
boolean prisonerIsAwake = true;
9685
assertThat(AnnalynsInfiltration.canSignalPrisoner(archerIsAwake, prisonerIsAwake)).isTrue();
9786
}
9887

9988
@Test
100-
@Ignore
10189
public void cannot_signal_prisoner_if_archer_is_awake_and_prisoner_is_sleeping() {
10290
boolean archerIsAwake = true;
10391
boolean prisonerIsAwake = false;
10492
assertThat(AnnalynsInfiltration.canSignalPrisoner(archerIsAwake, prisonerIsAwake)).isFalse();
10593
}
10694

10795
@Test
108-
@Ignore
10996
public void cannot_signal_prisoner_if_archer_and_prisoner_are_both_sleeping() {
11097
boolean archerIsAwake = false;
11198
boolean prisonerIsAwake = false;
11299
assertThat(AnnalynsInfiltration.canSignalPrisoner(archerIsAwake, prisonerIsAwake)).isFalse();
113100
}
114101

115102
@Test
116-
@Ignore
117103
public void cannot_signal_prisoner_if_archer_and_prisoner_are_both_awake() {
118104
boolean archerIsAwake = true;
119105
boolean prisonerIsAwake = true;
120106
assertThat(AnnalynsInfiltration.canSignalPrisoner(archerIsAwake, prisonerIsAwake)).isFalse();
121107
}
122108

123109
@Test
124-
@Ignore
125110
public void cannot_release_prisoner_if_everyone_is_awake_and_pet_dog_is_present() {
126111
boolean knightIsAwake = true;
127112
boolean archerIsAwake = true;
@@ -132,7 +117,6 @@ public void cannot_release_prisoner_if_everyone_is_awake_and_pet_dog_is_present(
132117
}
133118

134119
@Test
135-
@Ignore
136120
public void cannot_release_prisoner_if_everyone_is_awake_and_pet_dog_is_absent() {
137121
boolean knightIsAwake = true;
138122
boolean archerIsAwake = true;
@@ -143,7 +127,6 @@ public void cannot_release_prisoner_if_everyone_is_awake_and_pet_dog_is_absent()
143127
}
144128

145129
@Test
146-
@Ignore
147130
public void can_release_prisoner_if_everyone_is_asleep_and_pet_dog_is_present() {
148131
boolean knightIsAwake = false;
149132
boolean archerIsAwake = false;
@@ -154,7 +137,6 @@ public void can_release_prisoner_if_everyone_is_asleep_and_pet_dog_is_present()
154137
}
155138

156139
@Test
157-
@Ignore
158140
public void cannot_release_prisoner_if_everyone_is_asleep_and_pet_dog_is_absent() {
159141
boolean knightIsAwake = false;
160142
boolean archerIsAwake = false;
@@ -165,7 +147,6 @@ public void cannot_release_prisoner_if_everyone_is_asleep_and_pet_dog_is_absent(
165147
}
166148

167149
@Test
168-
@Ignore
169150
public void can_release_prisoner_if_only_prisoner_is_awake_and_pet_dog_is_present() {
170151
boolean knightIsAwake = false;
171152
boolean archerIsAwake = false;
@@ -176,7 +157,6 @@ public void can_release_prisoner_if_only_prisoner_is_awake_and_pet_dog_is_presen
176157
}
177158

178159
@Test
179-
@Ignore
180160
public void can_release_prisoner_if_only_prisoner_is_awake_and_pet_dog_is_absent() {
181161
boolean knightIsAwake = false;
182162
boolean archerIsAwake = false;
@@ -187,7 +167,6 @@ public void can_release_prisoner_if_only_prisoner_is_awake_and_pet_dog_is_absent
187167
}
188168

189169
@Test
190-
@Ignore
191170
public void cannot_release_prisoner_if_only_archer_is_awake_and_pet_dog_is_present() {
192171
boolean knightIsAwake = false;
193172
boolean archerIsAwake = true;
@@ -198,7 +177,6 @@ public void cannot_release_prisoner_if_only_archer_is_awake_and_pet_dog_is_prese
198177
}
199178

200179
@Test
201-
@Ignore
202180
public void cannot_release_prisoner_if_only_archer_is_awake_and_pet_dog_is_absent() {
203181
boolean knightIsAwake = false;
204182
boolean archerIsAwake = true;
@@ -209,7 +187,6 @@ public void cannot_release_prisoner_if_only_archer_is_awake_and_pet_dog_is_absen
209187
}
210188

211189
@Test
212-
@Ignore
213190
public void can_release_prisoner_if_only_knight_is_awake_and_pet_dog_is_present() {
214191
boolean knightIsAwake = true;
215192
boolean archerIsAwake = false;
@@ -220,7 +197,6 @@ public void can_release_prisoner_if_only_knight_is_awake_and_pet_dog_is_present(
220197
}
221198

222199
@Test
223-
@Ignore
224200
public void cannot_release_prisoner_if_only_knight_is_awake_and_pet_dog_is_absent() {
225201
boolean knightIsAwake = true;
226202
boolean archerIsAwake = false;
@@ -231,7 +207,6 @@ public void cannot_release_prisoner_if_only_knight_is_awake_and_pet_dog_is_absen
231207
}
232208

233209
@Test
234-
@Ignore
235210
public void cannot_release_prisoner_if_only_knight_is_asleep_and_pet_dog_is_present() {
236211
boolean knightIsAwake = false;
237212
boolean archerIsAwake = true;
@@ -242,7 +217,6 @@ public void cannot_release_prisoner_if_only_knight_is_asleep_and_pet_dog_is_pres
242217
}
243218

244219
@Test
245-
@Ignore
246220
public void cannot_release_prisoner_if_only_knight_is_asleep_and_pet_dog_is_absent() {
247221
boolean knightIsAwake = false;
248222
boolean archerIsAwake = true;
@@ -253,7 +227,6 @@ public void cannot_release_prisoner_if_only_knight_is_asleep_and_pet_dog_is_abse
253227
}
254228

255229
@Test
256-
@Ignore
257230
public void can_release_prisoner_if_only_archer_is_asleep_and_pet_dog_is_present() {
258231
boolean knightIsAwake = true;
259232
boolean archerIsAwake = false;
@@ -264,7 +237,6 @@ public void can_release_prisoner_if_only_archer_is_asleep_and_pet_dog_is_present
264237
}
265238

266239
@Test
267-
@Ignore
268240
public void cannot_release_prisoner_if_only_archer_is_asleep_and_pet_dog_is_absent() {
269241
boolean knightIsAwake = true;
270242
boolean archerIsAwake = false;
@@ -275,7 +247,6 @@ public void cannot_release_prisoner_if_only_archer_is_asleep_and_pet_dog_is_abse
275247
}
276248

277249
@Test
278-
@Ignore
279250
public void cannot_release_prisoner_if_only_prisoner_is_asleep_and_pet_dog_is_present() {
280251
boolean knightIsAwake = true;
281252
boolean archerIsAwake = true;
@@ -286,7 +257,6 @@ public void cannot_release_prisoner_if_only_prisoner_is_asleep_and_pet_dog_is_pr
286257
}
287258

288259
@Test
289-
@Ignore
290260
public void cannot_release_prisoner_if_only_prisoner_is_asleep_and_pet_dog_is_absent() {
291261
boolean knightIsAwake = true;
292262
boolean archerIsAwake = true;

exercises/concept/bird-watcher/src/test/java/BirdWatcherTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import org.junit.Before;
22
import org.junit.Test;
3-
import org.junit.Ignore;
43

54

65
import static org.assertj.core.api.Assertions.*;
@@ -30,62 +29,53 @@ public void itTestGetLastWeek() {
3029
}
3130

3231
@Test
33-
@Ignore("Remove to run test")
3432
public void itTestGetToday() {
3533
assertThat(birdWatcher.getToday()).isEqualTo(TODAY);
3634
}
3735

3836
@Test
39-
@Ignore("Remove to run test")
4037
public void itShouldReturnZeroIfBirdWatcherLastWeekIsEmpty() {
4138
int[] lastWeekEmpty = new int[0];
4239
birdWatcher = new BirdWatcher(lastWeekEmpty);
4340
assertThat(birdWatcher.getToday()).isEqualTo(0);
4441
}
4542

4643
@Test
47-
@Ignore("Remove to run test")
4844
public void itIncrementTodaysCount() {
4945
birdWatcher.incrementTodaysCount();
5046
assertThat(birdWatcher.getToday()).isEqualTo(TODAY + 1);
5147
}
5248

5349
@Test
54-
@Ignore("Remove to run test")
5550
public void itHasDayWithoutBirds() {
5651
assertThat(birdWatcher.hasDayWithoutBirds()).isTrue();
5752
}
5853

5954
@Test
60-
@Ignore("Remove to run test")
6155
public void itShouldNotHaveDaysWithoutBirds() {
6256
birdWatcher = new BirdWatcher(new int[]{1, 2, 5, 3, 7, 8, 4});
6357
assertThat(birdWatcher.hasDayWithoutBirds()).isFalse();
6458
}
6559

6660

6761
@Test
68-
@Ignore("Remove to run test")
6962
public void itTestGetCountForFirstDays() {
7063
assertThat(birdWatcher.getCountForFirstDays(4)).isEqualTo(DAY1 + DAY2 + DAY3 + DAY4);
7164
}
7265

7366
@Test
74-
@Ignore("Remove to run test")
7567
public void itTestGetCountForMoreDaysThanTheArraySize() {
7668
assertThat(birdWatcher.getCountForFirstDays(10))
7769
.isEqualTo(DAY1 + DAY2 + DAY3 + DAY4 + DAY5 + DAY6 + TODAY);
7870
}
7971

8072
@Test
81-
@Ignore("Remove to run test")
8273
public void itTestGetCountForBusyDays() {
8374
// DAY3, DAY5 and DAY6 are all >= 5 birds
8475
assertThat(birdWatcher.getBusyDays()).isEqualTo(3);
8576
}
8677

8778
@Test
88-
@Ignore("Remove to run test")
8979
public void itShouldNotHaveBusyDays() {
9080
birdWatcher = new BirdWatcher(new int[]{1, 2, 3, 3, 2, 1, 4});
9181
assertThat(birdWatcher.getBusyDays()).isEqualTo(0);

0 commit comments

Comments
 (0)