From 5690a0ab1f17a902834345ca9a6aa14d92cf3d55 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 7 Dec 2023 08:21:33 +1100 Subject: [PATCH] #1309: Add tests for Bukkit Pose By: Doc --- .../org/bukkit/entity/EntityPoseTest.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 paper-server/src/test/java/org/bukkit/entity/EntityPoseTest.java diff --git a/paper-server/src/test/java/org/bukkit/entity/EntityPoseTest.java b/paper-server/src/test/java/org/bukkit/entity/EntityPoseTest.java new file mode 100644 index 0000000000..ef7d656955 --- /dev/null +++ b/paper-server/src/test/java/org/bukkit/entity/EntityPoseTest.java @@ -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()); + } + } +}