Add test for LoginCommand; create AuthMe mock test util

Had to create a getter for the Management instance in the AuthMe class for mocking, but fields should generally not be accessed globally. Hopefully soon we will be able to make the field private.
This commit is contained in:
ljacqu
2015-11-21 09:49:39 +01:00
parent d81ef3168e
commit 4e8614fdf7
4 changed files with 113 additions and 1 deletions
@@ -24,7 +24,7 @@ public class LoginCommand extends ExecutableCommand {
final String playerPass = commandArguments.get(0);
// Log the player in
plugin.management.performLogin(player, playerPass, false);
plugin.getManagement().performLogin(player, playerPass, false);
return true;
}
}