Class GameEngineTest.TestNewGame

java.lang.Object
com.takenoko.engine.GameEngineTest.TestNewGame
Enclosing class:
GameEngineTest

@Nested @DisplayName("Method newGame") class GameEngineTest.TestNewGame extends Object
  • Constructor Details

    • TestNewGame

      TestNewGame()
  • Method Details

    • shouldThrowExceptionIfGameStateIsNotInitializedOrFinished

      @Test @DisplayName("Should throw an exception if the game state is not INITIALIZED or FINISHED") void shouldThrowExceptionIfGameStateIsNotInitializedOrFinished()
      Test that the game state is set to READY after a new game is created.
    • shouldRecreateBoardAndResetBotManagers

      @Test @DisplayName("Should recreate the board and reset the bot managers") void shouldRecreateBoardAndResetBotManagers()
    • newGame_shouldSetGameStateToReady

      @Test @DisplayName("newGame should set the game state to READY") void newGame_shouldSetGameStateToReady()
    • newGame_shouldDisplayALotOfMessages

      @Test @DisplayName("newGame should display a lot of messages") void newGame_shouldDisplayALotOfMessages()