From 8a380d1ef3e81db1dd79392744fed716a4e0202b Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 1 Feb 2023 20:02:21 +0100 Subject: [PATCH] unittest: updated item test This additionally tests the damage of the items --- 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 56335cc..ef6093c 100644 --- a/src/test/java/org/bitbiome/entitiesTest/ItemTest.java +++ b/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()); + } }