From b8497a91a642aadf0190331994d05e9d08fd0a48 Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Sun, 6 Mar 2016 14:11:56 -0500 Subject: [PATCH] Disable updater tests They're too prone to failure due to HTTP errors --- .../java/com/comphenix/protocol/updater/UpdaterTest.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java b/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java index 60c9a9af..ed708f32 100644 --- a/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java +++ b/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java @@ -12,8 +12,6 @@ import java.util.logging.Logger; import org.bukkit.Server; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.PluginDescriptionFile; -import org.junit.BeforeClass; -import org.junit.Test; import com.comphenix.protocol.updater.Updater.UpdateType; @@ -25,7 +23,7 @@ public class UpdaterTest { private static final int BUKKIT_DEV_ID = 45564; private static Plugin plugin; - @BeforeClass + //@BeforeClass public static void preparePlugin() { Server server = mock(Server.class); when(server.getUpdateFolder()).thenReturn(null); @@ -37,7 +35,7 @@ public class UpdaterTest { when(plugin.getServer()).thenReturn(server); } - @Test + //@Test public void testSpigotUpdater() { SpigotUpdater updater = new SpigotUpdater(plugin, UpdateType.NO_DOWNLOAD, true); @@ -55,7 +53,7 @@ public class UpdaterTest { updater.versionCheck(remote); } - @Test + //@Test public void testBukkitUpdater() { BukkitUpdater updater = new BukkitUpdater(plugin, BUKKIT_DEV_ID, null, UpdateType.NO_DOWNLOAD, true); if (! updater.read()) {