Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 930-captcha-for-register

This commit is contained in:
ljacqu
2017-12-22 21:54:58 +01:00
20 changed files with 194 additions and 88 deletions
@@ -107,14 +107,14 @@ public class LimboPersistenceTest {
Player player = mock(Player.class);
Logger logger = TestHelper.setupLogger();
LimboPersistenceHandler handler = getHandler();
doThrow(IllegalAccessException.class).when(handler).getLimboPlayer(player);
doThrow(RuntimeException.class).when(handler).getLimboPlayer(player);
// when
LimboPlayer result = limboPersistence.getLimboPlayer(player);
// then
assertThat(result, nullValue());
verify(logger).warning(argThat(containsString("[IllegalAccessException]")));
verify(logger).warning(argThat(containsString("[RuntimeException]")));
}
@Test