Add test for Failure to select a valid command

This commit is contained in:
Eric Stokes 2011-12-10 14:15:18 -07:00
parent c0ae0e3eea
commit ea6b020850

View File

@ -204,6 +204,9 @@ public class TestWorldStuff {
fail("Mode property did not exist.");
}
plugin.onCommand(mockCommandSender, mockCommand, "", new String[]{ "modify", "set", "blah", "fish", "world" });
verify(mockCommandSender).sendMessage(ChatColor.RED + "Sorry, You can't set: '"+ChatColor.GRAY+ "blah" + ChatColor.RED + "'");
}
private void createInitialWorlds(Plugin plugin, Command command) {