#1309: Add tests for Bukkit Pose

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot 2023-12-07 08:21:33 +11:00
parent 8672defea5
commit 5690a0ab1f

View file

@ -0,0 +1,22 @@
package org.bukkit.entity;
import static org.junit.jupiter.api.Assertions.*;
import net.minecraft.world.entity.EntityPose;
import org.junit.jupiter.api.Test;
public class EntityPoseTest {
@Test
public void testBukkitToMinecraft() {
for (Pose pose : Pose.values()) {
assertNotNull(EntityPose.values()[pose.ordinal()], pose.name());
}
}
@Test
public void testMinecraftToBukkit() {
for (EntityPose entityPose : EntityPose.values()) {
assertNotNull(Pose.values()[entityPose.ordinal()], entityPose.name());
}
}
}