Browse Source

unittest: created test for mob class

This tests whether the mob is friendly
remotes/origin/develop
David Hermann 2 years ago
parent
commit
562bd31373
  1. 24
      src/test/java/org/bitbiome/entitiesTest/MobTest.java

24
src/test/java/org/bitbiome/entitiesTest/MobTest.java

@ -0,0 +1,24 @@
package org.bitbiome.entitiesTest;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.bitbiome.entities.Mob;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
public class MobTest {
private static Mob mob;
@BeforeAll
public static void setMob() {
mob = new Mob();
mob.setFriendly(true);
}
@Test
public void testFriendly() {
assertEquals(mob.isFriendly(), true);
}
}
Loading…
Cancel
Save