Fixed tests for EnterExitListenerTest

This commit is contained in:
tastybento 2018-08-16 10:38:35 -07:00
parent 3f7198da25
commit ec005569a1
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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();
}