Fix InvincibleVisitorsListenerTest.

This commit is contained in:
tastybento 2021-03-14 13:48:31 -07:00
parent 74023914a7
commit 6c775329d0

View File

@ -114,7 +114,7 @@ public class InvincibleVisitorsListenerTest {
when(player.getUniqueId()).thenReturn(uuid);
PowerMockito.mockStatic(Util.class);
when(Util.getWorld(any())).thenReturn(mock(World.class));
when(Util.prettifyText(anyString())).thenCallRealMethod();
FlagsManager fm = mock(FlagsManager.class);
Flag flag = mock(Flag.class);
when(flag.isSetForWorld(any())).thenReturn(false);