コード例 #1
0
  @Test
  public void orientationValidPrevTest2() {
    Orientation ori = Orientation.NORTH;
    Orientation oriPrev = Orientation.getPrev(ori);

    assertTrue(oriPrev == Orientation.WEST);
  }
コード例 #2
0
  @Test
  public void orientationValidNextTest2() {
    Orientation ori = Orientation.SOUTH;
    Orientation oriNext = Orientation.getNext(ori);

    assertTrue(oriNext == Orientation.WEST);
  }
コード例 #3
0
  @Test
  public void orientationValidPrevTest1() {
    Orientation ori = Orientation.EAST;
    Orientation oriPrev = Orientation.getPrev(ori);

    assertTrue(oriPrev == Orientation.NORTH);
  }
コード例 #4
0
  @Test
  public void orientationValidNextTest1() {
    Orientation ori = Orientation.EAST;
    Orientation oriNext = Orientation.getNext(ori);

    assertTrue(oriNext == Orientation.SOUTH);
  }