Browse Source

unittest: updated item test

This additionally tests the damage of the items
remotes/origin/develop
David Hermann 2 years ago
parent
commit
8a380d1ef3
  1. 6
      src/test/java/org/bitbiome/entitiesTest/ItemTest.java

6
src/test/java/org/bitbiome/entitiesTest/ItemTest.java

@ -14,10 +14,16 @@ public class ItemTest {
public static void setItem() {
item = new Item();
item.setName("Unit");
item.setDamage(12.5F);
}
@Test
public void testGetName() {
assertEquals("Unit", item.getName());
}
@Test
public void testGetDamage() {
assertEquals(12.5, item.getDamage());
}
}
Loading…
Cancel
Save