diff --git a/Plan/src/test/java/utils/MockUtils.java b/Plan/src/test/java/utils/MockUtils.java index a53069cfb..70db22851 100644 --- a/Plan/src/test/java/utils/MockUtils.java +++ b/Plan/src/test/java/utils/MockUtils.java @@ -16,7 +16,6 @@ import org.bukkit.entity.Player; import org.mockito.Mockito; import org.powermock.api.mockito.PowerMockito; -import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.util.HashSet; @@ -154,7 +153,7 @@ public class MockUtils { return PowerMockito.mock(CommandSender.class); } - public static HttpServer mockHTTPServer() throws IOException { + public static HttpServer mockHTTPServer() { HttpServer httpServer = PowerMockito.mock(HttpServer.class); when(httpServer.getAddress()).thenReturn(new InetSocketAddress(80)); when(httpServer.getExecutor()).thenReturn(command -> System.out.println("HTTP Server command received"));