mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-29 03:21:38 +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.event.player.PlayerMoveEvent;
|
||||||
import org.bukkit.util.Vector;
|
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.events.island.IslandEvent;
|
||||||
import world.bentobox.bentobox.api.flags.AbstractFlagListener;
|
import world.bentobox.bentobox.api.flags.AbstractFlagListener;
|
||||||
import world.bentobox.bentobox.api.localization.TextVariables;
|
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||||
|
@ -204,7 +204,7 @@ public class EnterExitListenerTest {
|
|||||||
// Moving into the island should show a message
|
// Moving into the island should show a message
|
||||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-entering"));
|
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-entering"));
|
||||||
// The island owner needs to be checked
|
// 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
|
// Moving into the island should show a message
|
||||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-entering"));
|
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-entering"));
|
||||||
// No owner check
|
// No owner check
|
||||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
Mockito.verify(island).getOwner();
|
||||||
Mockito.verify(island, Mockito.times(2)).getName();
|
Mockito.verify(island, Mockito.times(2)).getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,7 +233,7 @@ public class EnterExitListenerTest {
|
|||||||
// Moving into the island should show a message
|
// Moving into the island should show a message
|
||||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-leaving"));
|
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-leaving"));
|
||||||
// The island owner needs to be checked
|
// 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
|
// Moving into the island should show a message
|
||||||
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-leaving"));
|
Mockito.verify(lm).get(Mockito.any(), Mockito.eq("protection.flags.ENTER_EXIT_MESSAGES.now-leaving"));
|
||||||
// No owner check
|
// No owner check
|
||||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
Mockito.verify(island).getOwner();
|
||||||
Mockito.verify(island, Mockito.times(2)).getName();
|
Mockito.verify(island, Mockito.times(2)).getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user