Просмотр исходного кода

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 10 лет назад
Родитель
Сommit
0896bce3ad
1 измененных файлов: 2 добавлений и 4 удалений
  1. 2
    4
      test/com/dmdirc/addons/debug/DebugTest.java

+ 2
- 4
test/com/dmdirc/addons/debug/DebugTest.java Просмотреть файл

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

Загрузка…
Отмена
Сохранить