Ejemplo n.º 1
0
  @Test
  public void testPutWall() {
    Board board = facade.createBoard(7, 16);
    Position position = Position.newPosition(3, 5, board);

    assertEquals(0, position.getElements().size());

    facade.putWall(board, 3, 5, facade.createWall());

    assertEquals(1, position.getElements().size());
  }
Ejemplo n.º 2
0
  @Test
  public void testPutRepairKit() {
    Board board = facade.createBoard(7, 16);
    Position position = Position.newPosition(3, 5, board);

    assertEquals(0, position.getElements().size());

    facade.putRepairKit(board, 3, 5, facade.createRepairKit(3547, 364768));

    assertEquals(1, position.getElements().size());
  }