From 06c77bf83768ad7503e89ee9e176e6370d2503a8 Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 1 Feb 2023 20:11:44 +0100 Subject: [PATCH] unittest: updated mob test This additionally tests how much life the mob has --- src/test/java/org/bitbiome/entitiesTest/MobTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/java/org/bitbiome/entitiesTest/MobTest.java b/src/test/java/org/bitbiome/entitiesTest/MobTest.java index 9777dc3..00afaf8 100644 --- a/src/test/java/org/bitbiome/entitiesTest/MobTest.java +++ b/src/test/java/org/bitbiome/entitiesTest/MobTest.java @@ -14,6 +14,7 @@ public class MobTest { mob = new Mob(); mob.setFriendly(true); mob.setDamage(0F); + mob.setHp(561.45F); } @@ -27,4 +28,8 @@ public class MobTest { assertEquals(mob.getDamage(), 0F); } + @Test + public void testHp() { + assertEquals(mob.getHp(), 561.45F); + } }