summaryrefslogtreecommitdiffstats
path: root/src/test/java/org/bukkit/BiomeTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/bukkit/BiomeTest.java')
-rw-r--r--src/test/java/org/bukkit/BiomeTest.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/BiomeTest.java b/src/test/java/org/bukkit/BiomeTest.java
new file mode 100644
index 00000000..8c6d40ae
--- /dev/null
+++ b/src/test/java/org/bukkit/BiomeTest.java
@@ -0,0 +1,24 @@
+package org.bukkit;
+
+import net.minecraft.server.BiomeBase;
+import org.bukkit.block.Biome;
+import org.bukkit.craftbukkit.block.CraftBlock;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class BiomeTest {
+
+ @Test
+ public void testBukkitToMinecraft() {
+ for (Biome biome : Biome.values()) {
+ Assert.assertNotNull("No NMS mapping for " + biome, CraftBlock.biomeToBiomeBase(biome));
+ }
+ }
+
+ @Test
+ public void testMinecraftToBukkit() {
+ for (BiomeBase biome : BiomeBase.REGISTRY_ID) {
+ Assert.assertNotNull("No Bukkit mapping for " + biome, CraftBlock.biomeBaseToBiome(biome));
+ }
+ }
+}