Package com.takenoko.layers.tile
Class TileLayerTest.TestPlaceTile
java.lang.Object
com.takenoko.layers.tile.TileLayerTest.TestPlaceTile
- Enclosing class:
- TileLayerTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Test that a tile can be placed on the board.(package private) void
(package private) void
(package private) void
(package private) void
(package private) void
-
Constructor Details
-
TestPlaceTile
TestPlaceTile()
-
-
Method Details
-
placeTile_WhenCalled_AddsTileToBoard
@Test @DisplayName("should place a tile on the board") void placeTile_WhenCalled_AddsTileToBoard()Test that a tile can be placed on the board. -
placeTile_WhenCalled_GrowsBambooOnTile
@Test @DisplayName("should call updateAvailableIrrigationChannelPositions when called") void placeTile_WhenCalled_GrowsBambooOnTile() -
placeTile_WhenCalled_RemovesPositionVectorFromAvailablePositions
@Test @DisplayName("should remove the vector from the available tiles positions when placed") void placeTile_WhenCalled_RemovesPositionVectorFromAvailablePositions() -
placeTile_WhenTileAlreadyAtPosition_ThrowsException
@Test @DisplayName("should throw an exception when there is already a tile in the position") void placeTile_WhenTileAlreadyAtPosition_ThrowsException() -
placeTile_WhenPositionNotAvailable_ThrowsException
@Test @DisplayName("should throw an exception when the position is not available (not adjacent)") void placeTile_WhenPositionNotAvailable_ThrowsException() -
placeTile_WhenCalled_CallsChooseTileInTileDeck
@Test @DisplayName("should call Board.chooseTileInTileDeck when called") void placeTile_WhenCalled_CallsChooseTileInTileDeck()
-