Class SingleBotStatisticsTest.TestUpdateEatenBambooCounter

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

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

    • TestUpdateEatenBambooCounter

      TestUpdateEatenBambooCounter()
  • Method Details

    • whenTheEatenBambooIsOfNewColor_shouldAddNewEntry

      @Test @DisplayName("when a bamboo of new color is eaten, should add new entry") void whenTheEatenBambooIsOfNewColor_shouldAddNewEntry()
    • whenTheEatenBambooIsntOfNewColor_shouldntAddNewEntry

      @Test @DisplayName("when the bamboo eaten isn\'t of new color, shouldn\'t add new entry") void whenTheEatenBambooIsntOfNewColor_shouldntAddNewEntry()
    • shouldIncrementNumberOfBamboosEatenForTheRightColor

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

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