Browse Source

Test.FillDrawCardDeck

main
fdai7906 11 months ago
parent
commit
b97fc75860
  1. 11
      src/test/java/de/hsfulda/onses/GameServiceTest.java

11
src/test/java/de/hsfulda/onses/GameServiceTest.java

@ -1,6 +1,7 @@
package de.hsfulda.onses; package de.hsfulda.onses;
import de.hsfulda.onses.models.Game;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
@ -63,5 +64,15 @@ public class GameServiceTest {
// assert // assert
assertEquals(expected, answer); assertEquals(expected, answer);
} }
@Test
@DisplayName("FillDrawCardDeck")
public void FillDrawCardDeck() {
GameService gameService = new GameService();
int expected = 112;
gameService.fillDrawDeck();
int answer = gameService.getGame().getDrawCardDeck().size();
assertEquals(expected, answer);
}
} }
Loading…
Cancel
Save