From 5be9b380e5b439e5f1962d7be03fe269b71df295 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Thu, 27 May 2021 10:26:29 +0200 Subject: [PATCH] Fix failing AuthMeInitializationTest --- src/test/java/fr/xephi/authme/AuthMeInitializationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/fr/xephi/authme/AuthMeInitializationTest.java b/src/test/java/fr/xephi/authme/AuthMeInitializationTest.java index 5fa11f6da..290312bb5 100644 --- a/src/test/java/fr/xephi/authme/AuthMeInitializationTest.java +++ b/src/test/java/fr/xephi/authme/AuthMeInitializationTest.java @@ -71,11 +71,11 @@ public class AuthMeInitializationTest { public void initAuthMe() throws IOException { dataFolder = temporaryFolder.newFolder(); File settingsFile = new File(dataFolder, "config.yml"); + given(server.getLogger()).willReturn(Logger.getAnonymousLogger()); JavaPluginLoader pluginLoader = new JavaPluginLoader(server); Files.copy(TestHelper.getJarFile(TestHelper.PROJECT_ROOT + "config.test.yml"), settingsFile); // Mock / wire various Bukkit components - given(server.getLogger()).willReturn(Logger.getAnonymousLogger()); ReflectionTestUtils.setField(Bukkit.class, null, "server", server); given(server.getPluginManager()).willReturn(pluginManager);