mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-27 10:31:21 +01:00
Fixed tests for EnterExitListenerTest
This commit is contained in:
parent
3f7198da25
commit
ec005569a1
@ -10,7 +10,6 @@ import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.player.PlayerMoveEvent;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import world.bentobox.bentobox.api.events.IslandBaseEvent;
|
||||
import world.bentobox.bentobox.api.events.island.IslandEvent;
|
||||
import world.bentobox.bentobox.api.flags.AbstractFlagListener;
|
||||
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||
|
@ -204,7 +204,7 @@ public class EnterExitListenerTest {
|
||||
// Moving into the island should show a message
|
||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-entering"));
|
||||
// The island owner needs to be checked
|
||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
||||
Mockito.verify(island).getOwner();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -218,7 +218,7 @@ public class EnterExitListenerTest {
|
||||
// Moving into the island should show a message
|
||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-entering"));
|
||||
// No owner check
|
||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
||||
Mockito.verify(island).getOwner();
|
||||
Mockito.verify(island, Mockito.times(2)).getName();
|
||||
}
|
||||
|
||||
@ -233,7 +233,7 @@ public class EnterExitListenerTest {
|
||||
// Moving into the island should show a message
|
||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-leaving"));
|
||||
// The island owner needs to be checked
|
||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
||||
Mockito.verify(island).getOwner();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -247,7 +247,7 @@ public class EnterExitListenerTest {
|
||||
// Moving into the island should show a message
|
||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-leaving"));
|
||||
// No owner check
|
||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
||||
Mockito.verify(island).getOwner();
|
||||
Mockito.verify(island, Mockito.times(2)).getName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user