Fixed PVPListenerTest

This commit is contained in:
Florian CUNY 2019-02-21 22:32:58 +01:00
parent 54aa2e61d3
commit e361d9867c

View File

@ -795,7 +795,7 @@ public class PVPListenerTest {
LingeringPotionSplashEvent e = new LingeringPotionSplashEvent(tp, cloud); LingeringPotionSplashEvent e = new LingeringPotionSplashEvent(tp, cloud);
new PVPListener().onLingeringPotionSplash(e); new PVPListener().onLingeringPotionSplash(e);
// Verify // Verify
Mockito.verify(player, Mockito.times(4)).getUniqueId(); Mockito.verify(player, Mockito.times(3)).getUniqueId();
Mockito.verify(cloud).getEntityId(); Mockito.verify(cloud).getEntityId();
Mockito.verify(tp, Mockito.times(2)).getShooter(); Mockito.verify(tp, Mockito.times(2)).getShooter();
PowerMockito.verifyStatic(Bukkit.class); PowerMockito.verifyStatic(Bukkit.class);