Example #1
0
 @Test
 public void middleTest() {
   Direction[] expectedDirections = {
     Down.getInstance(), Up.getInstance(), Right.getInstance(), Left.getInstance()
   };
   positionTest(Middle.getInstance(), expectedDirections);
 }
Example #2
0
 @Test
 public void UpOppositeTest() {
   assertTrue(Up.getInstance().opposite() == Down.getInstance());
 }
Example #3
0
 @Test
 public void DownOppositeTest() {
   assertTrue(Down.getInstance().opposite() == Up.getInstance());
 }
Example #4
0
 @Test
 public void topRightCornerTest() {
   Direction[] expectedDirections = {Down.getInstance(), Left.getInstance()};
   positionTest(TopRightCorner.getInstance(), expectedDirections);
 }
Example #5
0
 @Test
 public void topEdgeTest() {
   Direction[] expectedDirections = {Down.getInstance(), Right.getInstance(), Left.getInstance()};
   positionTest(TopEdge.getInstance(), expectedDirections);
 }