Fix unit test

This commit is contained in:
Gabriele C 2018-09-19 00:32:42 +02:00
parent 7f91b739f2
commit 84a65344c7

View File

@ -55,7 +55,7 @@ public class TaskCloserTest {
Server server = mock(Server.class); Server server = mock(Server.class);
given(server.getScheduler()).willReturn(bukkitScheduler); given(server.getScheduler()).willReturn(bukkitScheduler);
ReflectionTestUtils.setField(JavaPlugin.class, authMe, "server", server); 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)); taskCloser = spy(new TaskCloser(authMe, dataSource));
} }