コード例 #1
0
  @Test
  public void testRectangularStrategyBoard() {
    Iterator<Piece> iter = board.iterator();

    while (iter.hasNext()) {
      assertTrue(Piece.NULL_PIECE == iter.next());
    }
  }
コード例 #2
0
  @Test
  public void testIterator() {
    Iterator<Piece> iter = board.iterator();
    int iterCount = 0;

    while (iter.hasNext()) {
      iter.next();
      iterCount++;
    }

    assertEquals(36, iterCount);
  }