@Test public void testGetBoardSize() { ContinentMapController controller = new ContinentMapController(new Integer[] {1}); assertEquals(1, controller.getBoardSize()); controller = new ContinentMapController(ContinentMapController.DEFAULT_MAP_HEIGHTS); assertEquals(5, controller.getBoardSize()); }
public int getBoardSize() { return boardSize; }
ContinentMapController { public int getBoardSize() { return boardSize; } }
ContinentMapController { public int getBoardSize() { return boardSize; } ContinentMapController(); @VisibleForTesting  ContinentMapController(Integer[] mapHeights); }
ContinentMapController { public int getBoardSize() { return boardSize; } ContinentMapController(); @VisibleForTesting  ContinentMapController(Integer[] mapHeights); Cell getCell(int x, int y); int getBoardSize(); int getMaxHeight(); int getMinHeight(); void clearContinentalDivide(); void buildUpContinentalDivide(boolean oneStep); void buildDownContinentalDivide(boolean oneStep); void generateTerrain(int detail); }
ContinentMapController { public int getBoardSize() { return boardSize; } ContinentMapController(); @VisibleForTesting  ContinentMapController(Integer[] mapHeights); Cell getCell(int x, int y); int getBoardSize(); int getMaxHeight(); int getMinHeight(); void clearContinentalDivide(); void buildUpContinentalDivide(boolean oneStep); void buildDownContinentalDivide(boolean oneStep); void generateTerrain(int detail);  }