From 21f5b7d44c8dcec7a72ec3250f28e704654b54f5 Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 1 Feb 2023 20:11:05 +0100 Subject: [PATCH] unittest: updated mob test This additionally tests how much damage the mob does --- src/test/java/org/bitbiome/entitiesTest/MobTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/bitbiome/entitiesTest/MobTest.java b/src/test/java/org/bitbiome/entitiesTest/MobTest.java index b11f4ce..9777dc3 100644 --- a/src/test/java/org/bitbiome/entitiesTest/MobTest.java +++ b/src/test/java/org/bitbiome/entitiesTest/MobTest.java @@ -13,6 +13,7 @@ public class MobTest { public static void setMob() { mob = new Mob(); mob.setFriendly(true); + mob.setDamage(0F); } @@ -20,5 +21,10 @@ public class MobTest { public void testFriendly() { assertEquals(mob.isFriendly(), true); } + + @Test + public void testDamage() { + assertEquals(mob.getDamage(), 0F); + } }