|
@@ -26,6 +26,7 @@ import com.dmdirc.MessageTarget;
|
26
|
26
|
import com.dmdirc.commandparser.CommandArguments;
|
27
|
27
|
import com.dmdirc.commandparser.CommandManager;
|
28
|
28
|
import com.dmdirc.commandparser.commands.context.ChatCommandContext;
|
|
29
|
+import com.dmdirc.commandparser.commands.global.Echo;
|
29
|
30
|
import com.dmdirc.config.IdentityManager;
|
30
|
31
|
import com.dmdirc.config.InvalidIdentityFileException;
|
31
|
32
|
import com.dmdirc.interfaces.ui.InputWindow;
|
|
@@ -41,7 +42,7 @@ public class RedirectCommandTest {
|
41
|
42
|
@BeforeClass
|
42
|
43
|
public static void setupClass() throws InvalidIdentityFileException {
|
43
|
44
|
IdentityManager.getIdentityManager().initialise();
|
44
|
|
- CommandManager.getCommandManager().initCommands();
|
|
45
|
+ CommandManager.getCommandManager().registerCommand(new Echo(), Echo.INFO);
|
45
|
46
|
}
|
46
|
47
|
|
47
|
48
|
@Ignore
|
|
@@ -55,7 +56,7 @@ public class RedirectCommandTest {
|
55
|
56
|
IdentityManager.getIdentityManager().getGlobalConfiguration());
|
56
|
57
|
|
57
|
58
|
command.execute(target, new CommandArguments("/redirect /echo test"),
|
58
|
|
- new ChatCommandContext(window.getContainer(), command.INFO, target));
|
|
59
|
+ new ChatCommandContext(window.getContainer(), RedirectCommand.INFO, target));
|
59
|
60
|
|
60
|
61
|
verify(target).sendLine("test");
|
61
|
62
|
}
|