Kaynağa Gözat

Merge pull request #505 from morrme/ignoreminesweeper

minesweeper: add hints to @Ignore annotations
FridaTveit 9 yıl önce
ebeveyn
işleme
2abd6b49dd

+ 14
- 14
exercises/minesweeper/src/test/java/MinesweeperBoardTest.java Dosyayı Görüntüle

@@ -28,7 +28,7 @@ public final class MinesweeperBoardTest {
28 28
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
29 29
     }
30 30
 
31
-    @Ignore
31
+    @Ignore("Remove to run test")
32 32
     @Test
33 33
     public void testInputBoardWithOneRowAndNoColumns() {
34 34
         final List<String> inputBoard = Collections.singletonList("");
@@ -39,7 +39,7 @@ public final class MinesweeperBoardTest {
39 39
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
40 40
     }
41 41
 
42
-    @Ignore
42
+    @Ignore("Remove to run test")
43 43
     @Test
44 44
     public void testInputBoardWithNoMines() {
45 45
         final List<String> inputBoard = Arrays.asList(
@@ -60,7 +60,7 @@ public final class MinesweeperBoardTest {
60 60
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
61 61
     }
62 62
 
63
-    @Ignore
63
+    @Ignore("Remove to run test")
64 64
     @Test
65 65
     public void testInputBoardWithOnlyMines() {
66 66
         final List<String> inputBoard = Arrays.asList(
@@ -81,7 +81,7 @@ public final class MinesweeperBoardTest {
81 81
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
82 82
     }
83 83
 
84
-    @Ignore
84
+    @Ignore("Remove to run test")
85 85
     @Test
86 86
     public void testInputBoardWithSingleMineAtCenter() {
87 87
         final List<String> inputBoard = Arrays.asList(
@@ -102,7 +102,7 @@ public final class MinesweeperBoardTest {
102 102
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
103 103
     }
104 104
 
105
-    @Ignore
105
+    @Ignore("Remove to run test")
106 106
     @Test
107 107
     public void testInputBoardWithMinesAroundPerimeter() {
108 108
         final List<String> inputBoard = Arrays.asList(
@@ -123,7 +123,7 @@ public final class MinesweeperBoardTest {
123 123
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
124 124
     }
125 125
 
126
-    @Ignore
126
+    @Ignore("Remove to run test")
127 127
     @Test
128 128
     public void testInputBoardWithSingleRowAndTwoMines() {
129 129
         final List<String> inputBoard = Collections.singletonList(
@@ -140,7 +140,7 @@ public final class MinesweeperBoardTest {
140 140
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
141 141
     }
142 142
 
143
-    @Ignore
143
+    @Ignore("Remove to run test")
144 144
     @Test
145 145
     public void testInputBoardWithSingleRowAndTwoMinesAtEdges() {
146 146
         final List<String> inputBoard = Collections.singletonList(
@@ -157,7 +157,7 @@ public final class MinesweeperBoardTest {
157 157
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
158 158
     }
159 159
 
160
-    @Ignore
160
+    @Ignore("Remove to run test")
161 161
     @Test
162 162
     public void testInputBoardWithSingleColumnAndTwoMines() {
163 163
         final List<String> inputBoard = Arrays.asList(
@@ -182,7 +182,7 @@ public final class MinesweeperBoardTest {
182 182
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
183 183
     }
184 184
 
185
-    @Ignore
185
+    @Ignore("Remove to run test")
186 186
     @Test
187 187
     public void testInputBoardWithSingleColumnAndTwoMinesAtEdges() {
188 188
         final List<String> inputBoard = Arrays.asList(
@@ -207,7 +207,7 @@ public final class MinesweeperBoardTest {
207 207
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
208 208
     }
209 209
 
210
-    @Ignore
210
+    @Ignore("Remove to run test")
211 211
     @Test
212 212
     public void testInputBoardWithMinesInCross() {
213 213
         final List<String> inputBoard = Arrays.asList(
@@ -232,7 +232,7 @@ public final class MinesweeperBoardTest {
232 232
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
233 233
     }
234 234
 
235
-    @Ignore
235
+    @Ignore("Remove to run test")
236 236
     @Test
237 237
     public void testLargeInputBoard() {
238 238
         final List<String> inputBoard = Arrays.asList(
@@ -259,7 +259,7 @@ public final class MinesweeperBoardTest {
259 259
         assertEquals(expectedAnnotatedRepresentation, actualAnnotatedRepresentation);
260 260
     }
261 261
 
262
-    @Ignore
262
+    @Ignore("Remove to run test")
263 263
     @Test
264 264
     public void testNullInputBoardIsRejected() {
265 265
         expectedException.expect(IllegalArgumentException.class);
@@ -268,7 +268,7 @@ public final class MinesweeperBoardTest {
268 268
         new MinesweeperBoard(null);
269 269
     }
270 270
 
271
-    @Ignore
271
+    @Ignore("Remove to run test")
272 272
     @Test
273 273
     public void testInputBoardWithInvalidSymbolsIsRejected() {
274 274
         expectedException.expect(IllegalArgumentException.class);
@@ -277,7 +277,7 @@ public final class MinesweeperBoardTest {
277 277
         new MinesweeperBoard(Collections.singletonList(" * & "));
278 278
     }
279 279
 
280
-    @Ignore
280
+    @Ignore("Remove to run test")
281 281
     @Test
282 282
     public void testInputBoardWithInconsistentRowLengthsIsRejected() {
283 283
         expectedException.expect(IllegalArgumentException.class);