예제 #1
0
 @Test
 public void middleTest() {
   Direction[] expectedDirections = {
     Down.getInstance(), Up.getInstance(), Right.getInstance(), Left.getInstance()
   };
   positionTest(Middle.getInstance(), expectedDirections);
 }
예제 #2
0
 @Test
 public void RightOppositeTest() {
   assertTrue(Right.getInstance().opposite() == Left.getInstance());
 }
예제 #3
0
 @Test
 public void topLeftCornerTest() {
   Direction[] expectedDirections = {Down.getInstance(), Right.getInstance()};
   positionTest(TopLeftCorner.getInstance(), expectedDirections);
 }
예제 #4
0
 @Test
 public void topEdgeTest() {
   Direction[] expectedDirections = {Down.getInstance(), Right.getInstance(), Left.getInstance()};
   positionTest(TopEdge.getInstance(), expectedDirections);
 }
예제 #5
0
 @Test
 public void bottomLeftCornerTest() {
   Direction[] expectedDirections = {Up.getInstance(), Right.getInstance()};
   positionTest(BottomLeftCorner.getInstance(), expectedDirections);
 }
예제 #6
0
 @Test
 public void bottomEdgeTest() {
   Direction[] expectedDirections = {Up.getInstance(), Left.getInstance(), Right.getInstance()};
   positionTest(BottomEdge.getInstance(), expectedDirections);
 }