Run tests with PowerMockRunner.

This commit is contained in:
tastybento 2021-03-28 21:02:06 -07:00
parent 4122bf1853
commit 72aa445c13
2 changed files with 10 additions and 4 deletions

View File

@ -15,8 +15,11 @@ import org.bukkit.potion.PotionEffectType;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
import org.powermock.modules.junit4.PowerMockRunner;
@RunWith(PowerMockRunner.class)
public class AcidEventTest { public class AcidEventTest {
@Mock @Mock

View File

@ -6,17 +6,20 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock; import static org.mockito.Mockito.mock;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffectType; import org.bukkit.potion.PotionEffectType;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
import org.powermock.modules.junit4.PowerMockRunner;
import java.util.ArrayList; @RunWith(PowerMockRunner.class)
import java.util.Arrays;
import java.util.List;
public class AcidRainEventTest { public class AcidRainEventTest {
@Mock @Mock