|
@ -0,0 +1,21 @@ |
|
|
|
|
|
package de.tims.fleetstorm; |
|
|
|
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
|
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
|
|
|
class GameManagerTest { |
|
|
|
|
|
|
|
|
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void testIfGameStateIsPreparationAfterStart() { |
|
|
|
|
|
gameManager.start(); |
|
|
|
|
|
int expectedState = GameManager.PREPARATION; |
|
|
|
|
|
|
|
|
|
|
|
int calculatedState = gameManager.getGameState(); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(expectedState, calculatedState); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |