Class GameEngineTest.TestEndGame.TestEndGame_WhenEndedIncorrectly

java.lang.Object
com.takenoko.engine.GameEngineTest.TestEndGame.TestEndGame_WhenEndedIncorrectly
Enclosing class:
GameEngineTest.TestEndGame

@Nested @DisplayName("when ended at the wrong time") class GameEngineTest.TestEndGame.TestEndGame_WhenEndedIncorrectly extends Object
  • Constructor Details

    • TestEndGame_WhenEndedIncorrectly

      TestEndGame_WhenEndedIncorrectly()
  • Method Details

    • streamOfStatesThatAreNotPLAYING

      private static Stream<org.junit.jupiter.params.provider.Arguments> streamOfStatesThatAreNotPLAYING()
    • endGame_shouldThrowException_WhenGameStateIsNotPLAYING

      @ParameterizedTest(name="i.e. : {0}") @MethodSource("streamOfStatesThatAreNotPLAYING") @DisplayName("should throw an exception when the game state is not PLAYING or FINISHED") void endGame_shouldThrowException_WhenGameStateIsNotPLAYING(GameState currentGameState)