mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-18 14:47:47 +01:00
Fix unit test
This commit is contained in:
parent
7f91b739f2
commit
84a65344c7
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user