mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-20 16:04:04 +00:00
Fixed Unit Tests (BlockVector3.isLongPackable) (#1168)
* Fixed Unit Tests (BlockVector3.isLongPackable) * Re-enable tests for ci * Address gh action dependency complaints * Fix "invalid usage of tag &" for MinecraftVersion.java * Simple StubServer for BukkitWorldTest.java * Add parallelgzip to test runtime, fixed javadoc encoding, make gradlew executable and patch StubServer for latest spigot / paper release * Move Javadoc UTF-8 to PlatformConfig.kt * Revert "make gradlew executable" Was required for act to run, but not required for GH actions - Weird behavior * Mark upstream changes, move class + apply editorconfig Co-authored-by: NotMyFault <mc.cache@web.de> Co-authored-by: Matt <4009945+MattBDev@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
31b41235ac
commit
7d3a9ff36d
@@ -19,7 +19,9 @@
|
||||
|
||||
package com.sk89q.worldedit.bukkit;
|
||||
|
||||
import com.fastasyncworldedit.util.StubServer;
|
||||
import com.sk89q.worldedit.util.TreeGenerator;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
@@ -28,6 +30,9 @@ public class BukkitWorldTest {
|
||||
|
||||
@Test
|
||||
public void testTreeTypeMapping() {
|
||||
// FAWE start - server implementation required because of LOGGER#warn in BukkitWorld.java
|
||||
Bukkit.setServer(new StubServer());
|
||||
// FAWE end
|
||||
for (TreeGenerator.TreeType type : TreeGenerator.TreeType.values()) {
|
||||
assertNotNull(BukkitWorld.toBukkitTreeType(type), "No mapping for: " + type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user