Class BambooLayerTest.TestGrowBamboo

java.lang.Object
com.takenoko.layers.bamboo.BambooLayerTest.TestGrowBamboo
Enclosing class:
BambooLayerTest

@Nested @DisplayName("Method addBamboo()") class BambooLayerTest.TestGrowBamboo extends Object
  • Constructor Details

    • TestGrowBamboo

      TestGrowBamboo()
  • Method Details

    • shouldThrowAnExceptionIfThePositionIsTheSameAsThePond

      @Test @DisplayName("should throw an exception if the position is the same as the Pond") void shouldThrowAnExceptionIfThePositionIsTheSameAsThePond()
    • shouldThrowAnExceptionIfThePositionIsNotOnTheBoard

      @Test @DisplayName("should throw an exception if the position is not on the board") void shouldThrowAnExceptionIfThePositionIsNotOnTheBoard()
    • shouldAddABambooToTheBambooLayerIfTheKeyExists

      @Test @DisplayName("should add a bamboo to the bamboo layer") void shouldAddABambooToTheBambooLayerIfTheKeyExists()
    • shouldAddTwoBamboosToTheBambooLayerWhenFertilized

      @Test @DisplayName("should add two bamboos to the bamboo layer when fertilized") void shouldAddTwoBamboosToTheBambooLayerWhenFertilized()
    • shouldNotGrowBambooPastTheMaximumNumberOfBamboos

      @Test @DisplayName("should not grow bamboo past the maximum number of bamboos") void shouldNotGrowBambooPastTheMaximumNumberOfBamboos()