tests: Remove stub server (#1629)

This commit is contained in:
Alex 2022-02-28 13:53:08 +01:00 committed by GitHub
parent c5d70f0da1
commit 340f8dded3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 1109 deletions

View File

@ -19,9 +19,7 @@
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;
@ -30,9 +28,6 @@ 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);
}