Class SingleBotStatisticsTest.TestUpdatePlantedBamboo

java.lang.Object
com.takenoko.engine.SingleBotStatisticsTest.TestUpdatePlantedBamboo
Enclosing class:
SingleBotStatisticsTest

@Nested @DisplayName("Test Update Planted Bamboo Counter") class SingleBotStatisticsTest.TestUpdatePlantedBamboo extends Object
  • Constructor Details

    • TestUpdatePlantedBamboo

      TestUpdatePlantedBamboo()
  • Method Details

    • whenThePlantedBambooIsOfNewColor_shouldAddNewEntry

      @Test @DisplayName("when a bamboo of new color is planted, should add new entry") void whenThePlantedBambooIsOfNewColor_shouldAddNewEntry()
    • whenThePlantedBambooIsntOfNewColor_shouldntAddNewEntry

      @Test @DisplayName("when the bamboo planted isn\'t of new color, shouldn\'t add new entry") void whenThePlantedBambooIsntOfNewColor_shouldntAddNewEntry()
    • shouldIncrementNumberOfBamboosPlantedForTheRightColor

      @Test @DisplayName("should increment number of bamboos planted for the right color") void shouldIncrementNumberOfBamboosPlantedForTheRightColor()
    • ifParameterIsNull_shouldThrowException

      @Test @DisplayName("if parameter is null, should throw exception") void ifParameterIsNull_shouldThrowException()