Fixed failing test in JoinLeaveListener (erroneous)

This commit is contained in:
Florian CUNY 2020-01-18 09:58:16 +01:00
parent e17056376a
commit abf5e1f071

View File

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