Browse Source

Test.finalRelationsTest

main
fdai7920 11 months ago
parent
commit
67855c0c2c
  1. 16
      src/test/java/de/hsfulda/onses/GameServiceTest.java

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

@ -169,4 +169,20 @@ public class GameServiceTest {
// assert // assert
assertEquals(expected, answer); assertEquals(expected, answer);
} }
@Test
@DisplayName("allRelationsTest")
public void allRelationsTest ()
{
// arrange
GameService expected = new GameService();
//act
Player input1 = expected.getGame().getPlayerService().getPlayerList().getFirst();
Player input2 = expected.getGame().getPlayerService().getPlayerList().getLast();
GameService answer1 = input1.getPlayerService().getGame().getGameService();
GameService answer2 = input2.getGame().getGameService();
// assert
assertEquals(expected, answer1);
assertEquals(expected, answer2);
}
} }
Loading…
Cancel
Save