File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
org-code-javabuilder/validation/src/test/java/org/code/validation/support Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,25 @@ public void testMoveEventUpdatesPosition() {
32
32
// Should move to (2, 1)
33
33
assertEquals (2 , unitUnderTest .getCurrentPosition ().getX ());
34
34
assertEquals (1 , unitUnderTest .getCurrentPosition ().getY ());
35
+ assertEquals ("east" , unitUnderTest .getCurrentPosition ().getDirection ());
35
36
36
37
unitUnderTest .trackEvent (createMoveEvent (Direction .SOUTH ));
37
38
// Should move to (2, 2)
38
39
assertEquals (2 , unitUnderTest .getCurrentPosition ().getX ());
39
40
assertEquals (2 , unitUnderTest .getCurrentPosition ().getY ());
41
+ assertEquals ("south" , unitUnderTest .getCurrentPosition ().getDirection ());
40
42
41
43
unitUnderTest .trackEvent (createMoveEvent (Direction .WEST ));
42
44
// Should move to (1, 2)
43
45
assertEquals (1 , unitUnderTest .getCurrentPosition ().getX ());
44
46
assertEquals (2 , unitUnderTest .getCurrentPosition ().getY ());
47
+ assertEquals ("west" , unitUnderTest .getCurrentPosition ().getDirection ());
45
48
46
49
unitUnderTest .trackEvent (createMoveEvent (Direction .NORTH ));
47
50
// Should move to (1, 1)
48
51
assertEquals (1 , unitUnderTest .getCurrentPosition ().getX ());
49
52
assertEquals (1 , unitUnderTest .getCurrentPosition ().getY ());
53
+ assertEquals ("north" , unitUnderTest .getCurrentPosition ().getDirection ());
50
54
}
51
55
52
56
@ Test
You can’t perform that action at this time.
0 commit comments