@@ -1,22 +1,22 @@
|
||||
package org.bukkit.craftbukkit;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.bukkit.HeightMap;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class HeightMapTest {
|
||||
|
||||
@Test
|
||||
public void heightMapConversionFromNMSToBukkitShouldNotThrowExceptio() {
|
||||
for (net.minecraft.world.level.levelgen.HeightMap.Type nmsHeightMapType : net.minecraft.world.level.levelgen.HeightMap.Type.values()) {
|
||||
Assert.assertNotNull("fromNMS", CraftHeightMap.fromNMS(nmsHeightMapType));
|
||||
assertNotNull(CraftHeightMap.fromNMS(nmsHeightMapType), "fromNMS");
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void heightMapConversionFromBukkitToNMSShouldNotThrowExceptio() {
|
||||
for (HeightMap bukkitHeightMap : HeightMap.values()) {
|
||||
Assert.assertNotNull("toNMS", CraftHeightMap.toNMS(bukkitHeightMap));
|
||||
assertNotNull(CraftHeightMap.toNMS(bukkitHeightMap), "toNMS");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user