Browse Source

Test.GivePlayerName

main
fdai7906 11 months ago
parent
commit
d2b1c0eefb
  1. 10
      src/test/java/de/hsfulda/onses/PlayerTest.java

10
src/test/java/de/hsfulda/onses/PlayerTest.java

@ -58,4 +58,14 @@ public class PlayerTest {
assertEquals(expected, answer1); assertEquals(expected, answer1);
assertEquals(expected, answer2); assertEquals(expected, answer2);
} }
@Test
@DisplayName("GivePlayerName")
public void getPlayerName() {
Player player = new Player();
String expected = "Spieler";
player.setPlayerName(expected);
String answer = player.getPlayerName();
assertEquals(expected, answer);
}
} }
Loading…
Cancel
Save