Browse Source

Refactoring: addOpponents calling addPlayerToList

main
fdai7920 11 months ago
parent
commit
015d62dd99
  1. 2
      src/main/java/de/hsfulda/onses/services/PlayerService.java
  2. 2
      src/test/java/de/hsfulda/onses/PlayerServiceTest.java

2
src/main/java/de/hsfulda/onses/services/PlayerService.java

@ -22,7 +22,7 @@ public class PlayerService {
public void addOpponents(int amount) {
for (int i=0; i<amount; i++)
{
playerList.add(new Player());
addPlayerToList(new Player());
}
}

2
src/test/java/de/hsfulda/onses/PlayerServiceTest.java

@ -46,7 +46,7 @@ public class PlayerServiceTest {
}
@Test
@DisplayName("addPlayerToPlayerList")
@DisplayName("addAmountOfOpponents")
void addAmountOfOpponents()
{
//arrange

Loading…
Cancel
Save