Explorar el Código

More fixes.

Change-Id: Ie9ce5e3ee199e93ee786912e6593a6b597d9e403
Reviewed-on: http://gerrit.dmdirc.com/3565
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
changes/65/3565/2
Chris Smith hace 10 años
padre
commit
0896bce3ad
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2
    4
      test/com/dmdirc/addons/debug/DebugTest.java

+ 2
- 4
test/com/dmdirc/addons/debug/DebugTest.java Ver fichero

@@ -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
 

Loading…
Cancelar
Guardar