Browse Source

Test.Relationship.Player.PlayerService

main
fdai7920 11 months ago
parent
commit
eda7a19a79
  1. 12
      src/test/java/de/hsfulda/onses/PlayerServiceTest.java

12
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);
}
}
Loading…
Cancel
Save