From cce1622a453d7d47927bdfefd5072ebcb254bce5 Mon Sep 17 00:00:00 2001 From: punchready Date: Tue, 1 Jun 2021 00:50:43 +0200 Subject: [PATCH] WIP: add full game test base --- .../gamelibrary/gamelogic/GameLogicTest.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/test/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogicTest.java b/src/test/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogicTest.java index 215675a..ee229e3 100644 --- a/src/test/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogicTest.java +++ b/src/test/java/uulm/teamname/marvelous/gamelibrary/gamelogic/GameLogicTest.java @@ -161,6 +161,30 @@ class GameLogicTest { } + @Test + void testGame() { + GameInstance game = new GameInstance(partyConfig, characterConfig, scenarioConfig); + + game.addObserver(new EventObserver() { + @Override + protected void handle(Event[] events) { + + } + }); + + ArrayList selected1 = new ArrayList<>(); + for(int i = 0; i < 6; i++) { + selected1.add(i); + } + ArrayList selected2 = new ArrayList<>(); + for(int i = 6; i < 12; i++) { + selected2.add(i); + } + + game.startGame(selected1, selected2); + } + + // @Provide("gamestate") // Arbitrary gamestate() { // var states = Arbitraries.integers()