Browse Source

unittest: updated player test

This additionally tests how many lives the player has
remotes/origin/develop
David Hermann 2 years ago
parent
commit
df4b960fa7
  1. 8
      src/test/java/org/bitbiome/entitiesTest/PlayerTest.java

8
src/test/java/org/bitbiome/entitiesTest/PlayerTest.java

@ -15,7 +15,7 @@ public class PlayerTest {
player = new Player();
player.setName("UnitPlayer");
player.setHp(100F);
}
@Test
@ -23,4 +23,10 @@ public class PlayerTest {
assertEquals("UnitPlayer", player.getName());
}
@Test
public void testPlayerHp() {
assertEquals(100F, player.getHp());
}
}
Loading…
Cancel
Save