Browse Source

unittest: Added test to ItemTest

This tests the amount of one item
remotes/origin/develop
David Hermann 2 years ago
parent
commit
c83a4ae338
  1. 6
      src/test/java/org/bitbiome/entitiesTest/ItemTest.java

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

@ -17,6 +17,7 @@ public class ItemTest {
item.setName("Unit");
item.setDamage("12,5");
item.changeDoesDamage(true);
item.setAmount(5);
}
@Test
@ -35,4 +36,9 @@ public class ItemTest {
assumeTrue(item.getDamage().equals("12,5"));
assumeTrue(doesDamage);
}
@Test
public void testGetAmount() {
assumeTrue(item.getAmount() == 5);
}
}
Loading…
Cancel
Save