From c83a4ae33814621c581da45da60b2682b8e2223f Mon Sep 17 00:00:00 2001 From: David Hermann Date: Tue, 7 Feb 2023 19:47:43 +0100 Subject: [PATCH] unittest: Added test to ItemTest This tests the amount of one item --- src/test/java/org/bitbiome/entitiesTest/ItemTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/bitbiome/entitiesTest/ItemTest.java b/src/test/java/org/bitbiome/entitiesTest/ItemTest.java index 069c5a7..1f1a677 100644 --- a/src/test/java/org/bitbiome/entitiesTest/ItemTest.java +++ b/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); + } }