From a12eec7a6bd3497ec91624d7e028c194c2a0222d Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 31 Aug 2018 21:12:44 +0200 Subject: [PATCH] Fixed Invincible Visitors unit testing --- .../listeners/flags/InvincibleVisitorsListenerTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/world/bentobox/bentobox/listeners/flags/InvincibleVisitorsListenerTest.java b/src/test/java/world/bentobox/bentobox/listeners/flags/InvincibleVisitorsListenerTest.java index b1df5c405..36e35deb9 100644 --- a/src/test/java/world/bentobox/bentobox/listeners/flags/InvincibleVisitorsListenerTest.java +++ b/src/test/java/world/bentobox/bentobox/listeners/flags/InvincibleVisitorsListenerTest.java @@ -137,8 +137,7 @@ public class InvincibleVisitorsListenerTest { public void testOnClickNoPermission() { when(user.hasPermission(Mockito.anyString())).thenReturn(false); listener.onClick(panel, user, ClickType.LEFT, 0); - Mockito.verify(user).sendMessage("general.errors.no-permission"); - Mockito.verify(user).sendMessage("general.errors.you-need", "[permission]", "bskyblock.admin.settings.INVINCIBLE_VISITORS"); + Mockito.verify(user).sendMessage("general.errors.no-permission", "[permission]", "bskyblock.admin.settings.INVINCIBLE_VISITORS"); } @Test