Fix UtilsTest, create MessageKeyTest

This commit is contained in:
ljacqu
2015-11-24 22:21:36 +01:00
parent e4c82e04ff
commit 72fe710b8c
4 changed files with 57 additions and 3 deletions
@@ -44,10 +44,14 @@ public class UtilsTest {
BukkitScheduler schedulerMock = mock(BukkitScheduler.class);
when(serverMock.getScheduler()).thenReturn(schedulerMock);
when(schedulerMock.runTaskAsynchronously(any(Plugin.class), any(Runnable.class)))
.thenReturn(mock(BukkitTask.class));
System.out.println("Initialized scheduler mock for server mock");
AuthMeMockUtil.insertMockWrapperInstance(Utils.class, "wrapper", (WrapperMock) wrapperMock);
System.out.println("Iniadfk");
permissionsManagerMock = mock(PermissionsManager.class);
when(authMeMock.getPermissionsManager()).thenReturn(permissionsManagerMock);