From 84a65344c76170c8cb7c07b308bddbb6b1803cb8 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 19 Sep 2018 00:32:42 +0200 Subject: [PATCH] Fix unit test --- .../java/fr/xephi/authme/initialization/TaskCloserTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/fr/xephi/authme/initialization/TaskCloserTest.java b/src/test/java/fr/xephi/authme/initialization/TaskCloserTest.java index 83efd0ebe..16613c134 100644 --- a/src/test/java/fr/xephi/authme/initialization/TaskCloserTest.java +++ b/src/test/java/fr/xephi/authme/initialization/TaskCloserTest.java @@ -55,7 +55,7 @@ public class TaskCloserTest { Server server = mock(Server.class); given(server.getScheduler()).willReturn(bukkitScheduler); ReflectionTestUtils.setField(JavaPlugin.class, authMe, "server", server); - ReflectionTestUtils.setField(JavaPlugin.class, authMe, "logger", logger); + given(authMe.getLogger()).willReturn(logger); taskCloser = spy(new TaskCloser(authMe, dataSource)); }