Fix failing test

This commit is contained in:
ljacqu 2017-04-01 22:01:54 +02:00
parent e775e415f2
commit 43b2375e2a

View File

@ -159,7 +159,7 @@ public class BukkitServiceTest {
@Test
public void shouldRunTaskDirectly() {
// given
given(settings.getProperty(PluginSettings.USE_ASYNC_TASKS)).willReturn(false);
given(server.isPrimaryThread()).willReturn(true);
bukkitService.reload(settings);
BukkitService spy = Mockito.spy(bukkitService);
Runnable task = mock(Runnable.class);