From eda7a19a790e120c00461a42b3225d0b14a20eb8 Mon Sep 17 00:00:00 2001 From: fdai7920 Date: Fri, 2 Feb 2024 15:11:10 +0100 Subject: [PATCH] Test.Relationship.Player.PlayerService --- .../java/de/hsfulda/onses/PlayerServiceTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); + } }