11import org .junit .jupiter .api .Disabled ;
2+ import org .junit .jupiter .api .DisplayName ;
23import org .junit .jupiter .api .Test ;
34
45import static org .assertj .core .api .Assertions .assertThat ;
@@ -8,6 +9,7 @@ public class RobotTest {
89 /* Create robot */
910
1011 @ Test
12+ @ DisplayName ("at origin facing north" )
1113 public void atOriginFacingNorth () {
1214 Orientation initialOrientation = Orientation .NORTH ;
1315 GridPosition initialGridPosition = new GridPosition (0 , 0 );
@@ -19,6 +21,7 @@ public void atOriginFacingNorth() {
1921
2022 @ Disabled ("Remove to run test" )
2123 @ Test
24+ @ DisplayName ("at negative position facing south" )
2225 public void atNegativePositionFacingSouth () {
2326 GridPosition initialGridPosition = new GridPosition (-1 , -1 );
2427 Orientation initialOrientation = Orientation .SOUTH ;
@@ -32,6 +35,7 @@ public void atNegativePositionFacingSouth() {
3235
3336 @ Disabled ("Remove to run test" )
3437 @ Test
38+ @ DisplayName ("changes north to east" )
3539 public void changesNorthToEast () {
3640 GridPosition initialGridPosition = new GridPosition (0 , 0 );
3741 Robot robot = new Robot (initialGridPosition , Orientation .NORTH );
@@ -45,6 +49,7 @@ public void changesNorthToEast() {
4549
4650 @ Disabled ("Remove to run test" )
4751 @ Test
52+ @ DisplayName ("changes east to south" )
4853 public void changesEastToSouth () {
4954 GridPosition initialGridPosition = new GridPosition (0 , 0 );
5055 Robot robot = new Robot (initialGridPosition , Orientation .EAST );
@@ -58,6 +63,7 @@ public void changesEastToSouth() {
5863
5964 @ Disabled ("Remove to run test" )
6065 @ Test
66+ @ DisplayName ("changes south to west" )
6167 public void changesSouthToWest () {
6268 GridPosition initialGridPosition = new GridPosition (0 , 0 );
6369 Robot robot = new Robot (initialGridPosition , Orientation .SOUTH );
@@ -71,6 +77,7 @@ public void changesSouthToWest() {
7177
7278 @ Disabled ("Remove to run test" )
7379 @ Test
80+ @ DisplayName ("changes west to north" )
7481 public void changesWestToNorth () {
7582 GridPosition initialGridPosition = new GridPosition (0 , 0 );
7683 Robot robot = new Robot (initialGridPosition , Orientation .WEST );
@@ -86,6 +93,7 @@ public void changesWestToNorth() {
8693
8794 @ Disabled ("Remove to run test" )
8895 @ Test
96+ @ DisplayName ("changes north to west" )
8997 public void changesNorthToWest () {
9098 GridPosition initialGridPosition = new GridPosition (0 , 0 );
9199 Robot robot = new Robot (initialGridPosition , Orientation .NORTH );
@@ -99,6 +107,7 @@ public void changesNorthToWest() {
99107
100108 @ Disabled ("Remove to run test" )
101109 @ Test
110+ @ DisplayName ("changes west to south" )
102111 public void changesWestToSouth () {
103112 GridPosition initialGridPosition = new GridPosition (0 , 0 );
104113 Robot robot = new Robot (initialGridPosition , Orientation .WEST );
@@ -112,6 +121,7 @@ public void changesWestToSouth() {
112121
113122 @ Disabled ("Remove to run test" )
114123 @ Test
124+ @ DisplayName ("changes south to east" )
115125 public void changesSouthToEast () {
116126 GridPosition initialGridPosition = new GridPosition (0 , 0 );
117127 Robot robot = new Robot (initialGridPosition , Orientation .SOUTH );
@@ -125,6 +135,7 @@ public void changesSouthToEast() {
125135
126136 @ Disabled ("Remove to run test" )
127137 @ Test
138+ @ DisplayName ("changes east to north" )
128139 public void changesEastToNorth () {
129140 GridPosition initialGridPosition = new GridPosition (0 , 0 );
130141 Robot robot = new Robot (initialGridPosition , Orientation .EAST );
@@ -140,6 +151,7 @@ public void changesEastToNorth() {
140151
141152 @ Disabled ("Remove to run test" )
142153 @ Test
154+ @ DisplayName ("facing north increments Y" )
143155 public void facingNorthIncrementsY () {
144156 Orientation initialOrientation = Orientation .NORTH ;
145157 Robot robot = new Robot (new GridPosition (0 , 0 ), initialOrientation );
@@ -153,6 +165,7 @@ public void facingNorthIncrementsY() {
153165
154166 @ Disabled ("Remove to run test" )
155167 @ Test
168+ @ DisplayName ("facing south decrements Y" )
156169 public void facingSouthDecrementsY () {
157170 Orientation initialOrientation = Orientation .SOUTH ;
158171 Robot robot = new Robot (new GridPosition (0 , 0 ), initialOrientation );
@@ -166,6 +179,7 @@ public void facingSouthDecrementsY() {
166179
167180 @ Disabled ("Remove to run test" )
168181 @ Test
182+ @ DisplayName ("facing east increments X" )
169183 public void facingEastIncrementsX () {
170184 Orientation initialOrientation = Orientation .EAST ;
171185 Robot robot = new Robot (new GridPosition (0 , 0 ), initialOrientation );
@@ -179,6 +193,7 @@ public void facingEastIncrementsX() {
179193
180194 @ Disabled ("Remove to run test" )
181195 @ Test
196+ @ DisplayName ("facing west decrements X" )
182197 public void facingWestDecrementsX () {
183198 Orientation initialOrientation = Orientation .WEST ;
184199 Robot robot = new Robot (new GridPosition (0 , 0 ), initialOrientation );
@@ -194,6 +209,7 @@ public void facingWestDecrementsX() {
194209
195210 @ Disabled ("Remove to run test" )
196211 @ Test
212+ @ DisplayName ("moving east and north from README" )
197213 public void movingEastAndNorthFromReadme () {
198214 Robot robot = new Robot (new GridPosition (7 , 3 ), Orientation .NORTH );
199215
@@ -209,6 +225,7 @@ public void movingEastAndNorthFromReadme() {
209225
210226 @ Disabled ("Remove to run test" )
211227 @ Test
228+ @ DisplayName ("moving west and north" )
212229 public void movingWestAndNorth () {
213230 Robot robot = new Robot (new GridPosition (0 , 0 ), Orientation .NORTH );
214231
@@ -223,6 +240,7 @@ public void movingWestAndNorth() {
223240
224241 @ Disabled ("Remove to run test" )
225242 @ Test
243+ @ DisplayName ("moving west and south" )
226244 public void movingWestAndSouth () {
227245 Robot robot = new Robot (new GridPosition (2 , -7 ), Orientation .EAST );
228246
@@ -237,6 +255,7 @@ public void movingWestAndSouth() {
237255
238256 @ Disabled ("Remove to run test" )
239257 @ Test
258+ @ DisplayName ("moving east and north" )
240259 public void movingEastAndNorth () {
241260 Robot robot = new Robot (new GridPosition (8 , 4 ), Orientation .SOUTH );
242261
0 commit comments