mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-23 19:25:12 +01:00
Fixed failing test in JoinLeaveListener (erroneous)
This commit is contained in:
parent
e17056376a
commit
abf5e1f071
@ -297,8 +297,8 @@ public class JoinLeaveListenerTest {
|
|||||||
jll.onPlayerJoin(event);
|
jll.onPlayerJoin(event);
|
||||||
// Verify
|
// Verify
|
||||||
verify(player, never()).sendMessage(eq("commands.admin.setrange.range-updated"));
|
verify(player, never()).sendMessage(eq("commands.admin.setrange.range-updated"));
|
||||||
// Verify island setting
|
// Verify that the island protection range is not changed if it is already at that value
|
||||||
verify(island).setProtectionRange(eq(50));
|
verify(island, never()).setProtectionRange(eq(50));
|
||||||
// Verify log
|
// Verify log
|
||||||
verify(plugin, never()).log("Island protection range changed from 50 to 10 for tastybento due to permission.");
|
verify(plugin, never()).log("Island protection range changed from 50 to 10 for tastybento due to permission.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user