From 9ba0935868e6f8b5cffdc99d2821b821e648688e Mon Sep 17 00:00:00 2001 From: David Hermann Date: Tue, 7 Feb 2023 19:55:58 +0100 Subject: [PATCH] unittest: Added test to ItemTest This tests the price of the 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 1f1a677..679cd08 100644 --- a/src/test/java/org/bitbiome/entitiesTest/ItemTest.java +++ b/src/test/java/org/bitbiome/entitiesTest/ItemTest.java @@ -18,6 +18,7 @@ public class ItemTest { item.setDamage("12,5"); item.changeDoesDamage(true); item.setAmount(5); + item.setGold(100); } @Test @@ -41,4 +42,9 @@ public class ItemTest { public void testGetAmount() { assumeTrue(item.getAmount() == 5); } + + @Test + public void testGetGold() { + assumeTrue(item.getGold() == 100); + } }