diff --git a/src/test/java/de/hsfulda/onses/PlayerServiceTest.java b/src/test/java/de/hsfulda/onses/PlayerServiceTest.java index 855ee24..5dc2fd2 100644 --- a/src/test/java/de/hsfulda/onses/PlayerServiceTest.java +++ b/src/test/java/de/hsfulda/onses/PlayerServiceTest.java @@ -78,4 +78,16 @@ public class PlayerServiceTest { // assert assertEquals(expected, answer); } + @Test + @DisplayName("RelationShip_Player_PlayerService") + void Relationship_Player_PlayerService() { + // arrange + PlayerService expected = new PlayerService(); + // act + PlayerService answer1 = expected.getPlayerList().getFirst().getPlayerService(); + PlayerService answer2 = expected.getPlayerList().getLast().getPlayerService(); + // assert + assertEquals(expected, answer1); + assertEquals(expected, answer2); + } }