Fix test in AntiBotServiceTest

This commit is contained in:
ljacqu 2017-11-23 20:06:21 +01:00
parent 53f7bf155f
commit 6365926cf0

View File

@ -11,7 +11,6 @@ import fr.xephi.authme.settings.Settings;
import fr.xephi.authme.settings.properties.ProtectionSettings;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitTask;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
@ -81,10 +80,10 @@ public class AntiBotServiceTest {
}
@Test
@Ignore // TODO ljacqu fix test
public void shouldActivateAntibot() {
// given - listening antibot
reset(bukkitService);
BukkitTask task = mock(BukkitTask.class);
given(bukkitService.runTaskLater(any(Runnable.class), anyLong())).willReturn(task);
// when
antiBotService.overrideAntiBotStatus(true);