mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 21:02:20 +01:00
Fixed enter/exit messages for unowned islands and tests.
This commit is contained in:
parent
9a666e29ca
commit
4534c16416
@ -190,7 +190,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).getOwner();
|
||||
Mockito.verify(island, Mockito.times(3)).getOwner();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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"));
|
||||
// No owner check
|
||||
Mockito.verify(island, Mockito.never()).getOwner();
|
||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
||||
Mockito.verify(island, Mockito.times(2)).getName();
|
||||
}
|
||||
|
||||
@ -219,7 +219,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).getOwner();
|
||||
Mockito.verify(island, Mockito.times(3)).getOwner();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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"));
|
||||
// No owner check
|
||||
Mockito.verify(island, Mockito.never()).getOwner();
|
||||
Mockito.verify(island, Mockito.times(2)).getOwner();
|
||||
Mockito.verify(island, Mockito.times(2)).getName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user