Kaynağa Gözat

robot-simulator: add hints to @Ignore annotations

morrme 9 yıl önce
ebeveyn
işleme
b0b6e4ad22

+ 19
- 19
exercises/robot-simulator/src/test/java/RobotTest.java Dosyayı Görüntüle

@@ -13,7 +13,7 @@ public final class RobotTest {
13 13
         assertTrue(robot.getGridPosition().equals(initialGridPosition));
14 14
     }
15 15
 
16
-    @Ignore
16
+    @Ignore("Remove to run test")
17 17
     @Test
18 18
     public void testRobotIsCreatedWithCorrectInitialOrientation() {
19 19
         final Orientation initialOrientation = Orientation.NORTH;
@@ -22,7 +22,7 @@ public final class RobotTest {
22 22
         assertTrue(robot.getOrientation().equals(initialOrientation));
23 23
     }
24 24
 
25
-    @Ignore
25
+    @Ignore("Remove to run test")
26 26
     @Test
27 27
     public void testTurningRightDoesNotChangePosition() {
28 28
         final GridPosition initialGridPosition = new GridPosition(0, 0);
@@ -33,7 +33,7 @@ public final class RobotTest {
33 33
         assertTrue(robot.getGridPosition().equals(initialGridPosition));
34 34
     }
35 35
 
36
-    @Ignore
36
+    @Ignore("Remove to run test")
37 37
     @Test
38 38
     public void testTurningRightCorrectlyChangesOrientationFromNorthToEast() {
39 39
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
@@ -45,7 +45,7 @@ public final class RobotTest {
45 45
         assertTrue(robot.getOrientation().equals(expectedOrientation));
46 46
     }
47 47
 
48
-    @Ignore
48
+    @Ignore("Remove to run test")
49 49
     @Test
50 50
     public void testTurningRightCorrectlyChangesOrientationFromEastToSouth() {
51 51
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.EAST);
@@ -57,7 +57,7 @@ public final class RobotTest {
57 57
         assertTrue(robot.getOrientation().equals(expectedOrientation));
58 58
     }
59 59
 
60
-    @Ignore
60
+    @Ignore("Remove to run test")
61 61
     @Test
62 62
     public void testTurningRightCorrectlyChangesOrientationFromSouthToWest() {
63 63
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.SOUTH);
@@ -69,7 +69,7 @@ public final class RobotTest {
69 69
         assertTrue(robot.getOrientation().equals(expectedOrientation));
70 70
     }
71 71
 
72
-    @Ignore
72
+    @Ignore("Remove to run test")
73 73
     @Test
74 74
     public void testTurningRightCorrectlyChangesOrientationFromWestToNorth() {
75 75
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.WEST);
@@ -81,7 +81,7 @@ public final class RobotTest {
81 81
         assertTrue(robot.getOrientation().equals(expectedOrientation));
82 82
     }
83 83
 
84
-    @Ignore
84
+    @Ignore("Remove to run test")
85 85
     @Test
86 86
     public void testTurningLeftDoesNotChangePosition() {
87 87
         final GridPosition initialGridPosition = new GridPosition(0, 0);
@@ -92,7 +92,7 @@ public final class RobotTest {
92 92
         assertTrue(robot.getGridPosition().equals(initialGridPosition));
93 93
     }
94 94
 
95
-    @Ignore
95
+    @Ignore("Remove to run test")
96 96
     @Test
97 97
     public void testTurningLeftCorrectlyChangesOrientationFromNorthToWest() {
98 98
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
@@ -104,7 +104,7 @@ public final class RobotTest {
104 104
         assertTrue(robot.getOrientation().equals(expectedOrientation));
105 105
     }
106 106
 
107
-    @Ignore
107
+    @Ignore("Remove to run test")
108 108
     @Test
109 109
     public void testTurningLeftCorrectlyChangesOrientationFromWestToSouth() {
110 110
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.WEST);
@@ -116,7 +116,7 @@ public final class RobotTest {
116 116
         assertTrue(robot.getOrientation().equals(expectedOrientation));
117 117
     }
118 118
 
119
-    @Ignore
119
+    @Ignore("Remove to run test")
120 120
     @Test
121 121
     public void testTurningLeftCorrectlyChangesOrientationFromSouthToEast() {
122 122
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.SOUTH);
@@ -128,7 +128,7 @@ public final class RobotTest {
128 128
         assertTrue(robot.getOrientation().equals(expectedOrientation));
129 129
     }
130 130
 
131
-    @Ignore
131
+    @Ignore("Remove to run test")
132 132
     @Test
133 133
     public void testTurningLeftCorrectlyChangesOrientationFromEastToNorth() {
134 134
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.EAST);
@@ -140,7 +140,7 @@ public final class RobotTest {
140 140
         assertTrue(robot.getOrientation().equals(expectedOrientation));
141 141
     }
142 142
 
143
-    @Ignore
143
+    @Ignore("Remove to run test")
144 144
     @Test
145 145
     public void testAdvancingDoesNotChangeOrientation() {
146 146
         final Orientation initialOrientation = Orientation.NORTH;
@@ -151,7 +151,7 @@ public final class RobotTest {
151 151
         assertTrue(robot.getOrientation().equals(initialOrientation));
152 152
     }
153 153
 
154
-    @Ignore
154
+    @Ignore("Remove to run test")
155 155
     @Test
156 156
     public void testAdvancingWhenFacingNorthIncreasesYCoordinateByOne() {
157 157
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
@@ -163,7 +163,7 @@ public final class RobotTest {
163 163
         assertTrue(robot.getGridPosition().equals(expectedGridPosition));
164 164
     }
165 165
 
166
-    @Ignore
166
+    @Ignore("Remove to run test")
167 167
     @Test
168 168
     public void testAdvancingWhenFacingSouthDecreasesYCoordinateByOne() {
169 169
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.SOUTH);
@@ -175,7 +175,7 @@ public final class RobotTest {
175 175
         assertTrue(robot.getGridPosition().equals(expectedGridPosition));
176 176
     }
177 177
 
178
-    @Ignore
178
+    @Ignore("Remove to run test")
179 179
     @Test
180 180
     public void testAdvancingWhenFacingEastIncreasesXCoordinateByOne() {
181 181
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.EAST);
@@ -187,7 +187,7 @@ public final class RobotTest {
187 187
         assertTrue(robot.getGridPosition().equals(expectedGridPosition));
188 188
     }
189 189
 
190
-    @Ignore
190
+    @Ignore("Remove to run test")
191 191
     @Test
192 192
     public void testAdvancingWhenFacingWestDecreasesXCoordinateByOne() {
193 193
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.WEST);
@@ -199,7 +199,7 @@ public final class RobotTest {
199 199
         assertTrue(robot.getGridPosition().equals(expectedGridPosition));
200 200
     }
201 201
 
202
-    @Ignore
202
+    @Ignore("Remove to run test")
203 203
     @Test
204 204
     public void testInstructionsToMoveWestAndNorth() {
205 205
         final Robot robot = new Robot(new GridPosition(0, 0), Orientation.NORTH);
@@ -213,7 +213,7 @@ public final class RobotTest {
213 213
         assertTrue(robot.getOrientation().equals(expectedOrientation));
214 214
     }
215 215
 
216
-    @Ignore
216
+    @Ignore("Remove to run test")
217 217
     @Test
218 218
     public void testInstructionsToMoveWestAndSouth() {
219 219
         final Robot robot = new Robot(new GridPosition(2, -7), Orientation.EAST);
@@ -227,7 +227,7 @@ public final class RobotTest {
227 227
         assertTrue(robot.getOrientation().equals(expectedOrientation));
228 228
     }
229 229
 
230
-    @Ignore
230
+    @Ignore("Remove to run test")
231 231
     @Test
232 232
     public void testInstructionsToMoveEastAndNorth() {
233 233
         final Robot robot = new Robot(new GridPosition(8, 4), Orientation.SOUTH);