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