|
@@ -29,8 +29,6 @@ import com.dmdirc.interfaces.CommandController;
|
29
|
29
|
|
30
|
30
|
import com.google.common.collect.Sets;
|
31
|
31
|
|
32
|
|
-import java.util.HashSet;
|
33
|
|
-
|
34
|
32
|
import org.junit.Before;
|
35
|
33
|
import org.junit.Test;
|
36
|
34
|
import org.junit.runner.RunWith;
|
|
@@ -66,11 +64,11 @@ public class DebugTest {
|
66
|
64
|
/** Checks the debug command with no arguments shows usage. */
|
67
|
65
|
@Test
|
68
|
66
|
public void testNoArgs() {
|
69
|
|
- debug = new Debug(controller, new HashSet<DebugCommand>());
|
|
67
|
+ debug = new Debug(controller, Sets.<DebugCommand>newHashSet());
|
70
|
68
|
when(arguments.isCommand()).thenReturn(true);
|
71
|
69
|
when(arguments.getArguments()).thenReturn(new String[0]);
|
72
|
70
|
debug.execute(container, arguments, null);
|
73
|
|
- verify(container).addLine(eq("commandUsage"), anyObject(),
|
|
71
|
+ verify(container).addLine(eq("commandUsage"), anyString(),
|
74
|
72
|
eq("debug"), anyObject());
|
75
|
73
|
}
|
76
|
74
|
|