mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-12-24 09:37:42 +01:00
Fix build
This commit is contained in:
parent
4213867048
commit
779c4a2b33
@ -102,7 +102,7 @@ public class LuckPermsHandler implements PermissionHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Group permissionGroup = luckPermsApi.getGroup(group);
|
Group permissionGroup = luckPermsApi.getGroup(group);
|
||||||
boolean result = permissionGroup != null && user.isInGroup(permissionGroup);
|
boolean result = permissionGroup != null && user.inheritsGroup(permissionGroup);
|
||||||
|
|
||||||
luckPermsApi.cleanupUser(user);
|
luckPermsApi.cleanupUser(user);
|
||||||
return result;
|
return result;
|
||||||
|
@ -107,14 +107,14 @@ public class LimboPersistenceTest {
|
|||||||
Player player = mock(Player.class);
|
Player player = mock(Player.class);
|
||||||
Logger logger = TestHelper.setupLogger();
|
Logger logger = TestHelper.setupLogger();
|
||||||
LimboPersistenceHandler handler = getHandler();
|
LimboPersistenceHandler handler = getHandler();
|
||||||
doThrow(IllegalAccessException.class).when(handler).getLimboPlayer(player);
|
doThrow(RuntimeException.class).when(handler).getLimboPlayer(player);
|
||||||
|
|
||||||
// when
|
// when
|
||||||
LimboPlayer result = limboPersistence.getLimboPlayer(player);
|
LimboPlayer result = limboPersistence.getLimboPlayer(player);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assertThat(result, nullValue());
|
assertThat(result, nullValue());
|
||||||
verify(logger).warning(argThat(containsString("[IllegalAccessException]")));
|
verify(logger).warning(argThat(containsString("[RuntimeException]")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user