Browse Source

Fix some broken unit tests

Remove junit 3 stuff
tags/0.6.3m1rc1
Chris Smith 15 years ago
parent
commit
b435501251
100 changed files with 237 additions and 216 deletions
  1. 1
    1
      test/com/dmdirc/IgnoreListTest.java
  2. 1
    1
      test/com/dmdirc/ProgramErrorTest.java
  3. 1
    1
      test/com/dmdirc/StringTranscoderTest.java
  4. 1
    1
      test/com/dmdirc/WritableFrameContainerTest.java
  5. 0
    4
      test/com/dmdirc/actions/ActionComparisonNamesTest.java
  6. 4
    5
      test/com/dmdirc/actions/ActionComponentChainTest.java
  7. 7
    3
      test/com/dmdirc/actions/ActionConditionTest.java
  8. 1
    1
      test/com/dmdirc/actions/ActionGroupTest.java
  9. 5
    3
      test/com/dmdirc/actions/ActionManagerTest.java
  10. 8
    1
      test/com/dmdirc/actions/ActionModelTest.java
  11. 4
    3
      test/com/dmdirc/actions/ActionTest.java
  12. 1
    1
      test/com/dmdirc/actions/ActionTypeComparatorTest.java
  13. 1
    1
      test/com/dmdirc/actions/ConditionTreeTest.java
  14. 1
    1
      test/com/dmdirc/actions/CoreActionComparisonTest.java
  15. 1
    1
      test/com/dmdirc/actions/CoreActionTypeTest.java
  16. 0
    4
      test/com/dmdirc/actions/StringComponentsTest.java
  17. 1
    1
      test/com/dmdirc/actions/metatypes/ActionEventsTest.java
  18. 1
    1
      test/com/dmdirc/actions/metatypes/ChannelEventsTest.java
  19. 1
    1
      test/com/dmdirc/actions/metatypes/ClientEventsTest.java
  20. 1
    1
      test/com/dmdirc/actions/metatypes/PluginEventsTest.java
  21. 1
    1
      test/com/dmdirc/actions/metatypes/QueryEventsTest.java
  22. 1
    1
      test/com/dmdirc/actions/metatypes/ServerEventsTest.java
  23. 1
    1
      test/com/dmdirc/actions/wrappers/AliasTest.java
  24. 7
    0
      test/com/dmdirc/actions/wrappers/AliasWrapperTest.java
  25. 1
    5
      test/com/dmdirc/addons/dcc/IpToLongTest.java
  26. 1
    1
      test/com/dmdirc/addons/identd/IdentClientTest.java
  27. 0
    4
      test/com/dmdirc/addons/logging/LoggingPluginTest.java
  28. 0
    3
      test/com/dmdirc/addons/logging/ReverseFileReaderTest.java
  29. 1
    1
      test/com/dmdirc/addons/mediasource_vlc/VlcMediaSourcePluginTest.java
  30. 1
    1
      test/com/dmdirc/addons/ui_swing/UIUtilitiesTest.java
  31. 0
    4
      test/com/dmdirc/addons/ui_swing/components/InputTextFrameTest.java
  32. 0
    4
      test/com/dmdirc/addons/ui_swing/components/reorderablelist/ArrayListTransferHandlerTest.java
  33. 0
    4
      test/com/dmdirc/addons/ui_swing/components/reorderablelist/ArrayListTransferableTest.java
  34. 0
    3
      test/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionEditorDialogTest.java
  35. 0
    4
      test/com/dmdirc/addons/ui_swing/dialogs/actionsmanager/ActionsManagerDialogTest.java
  36. 0
    4
      test/com/dmdirc/addons/ui_swing/dialogs/sslcertificate/SSLCertificateDialogTest.java
  37. 1
    1
      test/com/dmdirc/addons/urlcatcher/UrlCatcherPluginTest.java
  38. 6
    6
      test/com/dmdirc/commandparser/CommandTypeTest.java
  39. 15
    9
      test/com/dmdirc/commandparser/commands/HelpTest.java
  40. 10
    2
      test/com/dmdirc/commandparser/commands/channel/BanTest.java
  41. 12
    4
      test/com/dmdirc/commandparser/commands/channel/SetNickColourTest.java
  42. 11
    3
      test/com/dmdirc/commandparser/commands/chat/MeTest.java
  43. 11
    3
      test/com/dmdirc/commandparser/commands/global/AliasCommandTest.java
  44. 11
    3
      test/com/dmdirc/commandparser/commands/global/DebugTest.java
  45. 11
    3
      test/com/dmdirc/commandparser/commands/global/IfpluginTest.java
  46. 13
    5
      test/com/dmdirc/commandparser/commands/global/NewServerTest.java
  47. 13
    5
      test/com/dmdirc/commandparser/commands/server/ChangeServerTest.java
  48. 2
    8
      test/com/dmdirc/commandparser/parsers/CommandParserTest.java
  49. 4
    3
      test/com/dmdirc/commandparser/parsers/GlobalCommandParserTest.java
  50. 0
    4
      test/com/dmdirc/config/ConfigManagerTest.java
  51. 1
    1
      test/com/dmdirc/config/ConfigSourceTest.java
  52. 1
    1
      test/com/dmdirc/config/ConfigTargetTest.java
  53. 1
    1
      test/com/dmdirc/config/IdentityManagerTest.java
  54. 0
    4
      test/com/dmdirc/config/IdentityTest.java
  55. 1
    1
      test/com/dmdirc/config/InvalidIdentityFileExceptionTest.java
  56. 0
    4
      test/com/dmdirc/config/prefs/PreferencesCategoryTest.java
  57. 0
    3
      test/com/dmdirc/config/prefs/PreferencesSettingTest.java
  58. 8
    1
      test/com/dmdirc/config/prefs/validator/ActionGroupValidatorTest.java
  59. 1
    1
      test/com/dmdirc/config/prefs/validator/FileNameValidatorTest.java
  60. 1
    1
      test/com/dmdirc/config/prefs/validator/NotEmptyValidatorTest.java
  61. 1
    1
      test/com/dmdirc/config/prefs/validator/NumericalValidatorTest.java
  62. 1
    1
      test/com/dmdirc/config/prefs/validator/PermissiveValidatorTest.java
  63. 1
    1
      test/com/dmdirc/config/prefs/validator/PortValidatorTest.java
  64. 1
    1
      test/com/dmdirc/config/prefs/validator/RegexStringValidatorTest.java
  65. 1
    1
      test/com/dmdirc/config/prefs/validator/RegexValidatorTest.java
  66. 1
    1
      test/com/dmdirc/config/prefs/validator/StringLengthValidatorTest.java
  67. 1
    5
      test/com/dmdirc/config/prefs/validator/URLProtocolValidatorTest.java
  68. 1
    1
      test/com/dmdirc/config/prefs/validator/ValidatorChainTest.java
  69. 6
    5
      test/com/dmdirc/harness/TestCommandParser.java
  70. 8
    1
      test/com/dmdirc/logger/DMDircExceptionHandlerTest.java
  71. 1
    1
      test/com/dmdirc/logger/ErrorFixedStatusTest.java
  72. 1
    1
      test/com/dmdirc/logger/ErrorLevelTest.java
  73. 1
    1
      test/com/dmdirc/logger/ErrorReportStatusTest.java
  74. 1
    1
      test/com/dmdirc/logger/NullOutputStreamTest.java
  75. 1
    1
      test/com/dmdirc/logger/ProgramErrorTest.java
  76. 2
    2
      test/com/dmdirc/parser/irc/ChannelClientInfoTest.java
  77. 1
    1
      test/com/dmdirc/parser/irc/ClientInfoTest.java
  78. 0
    4
      test/com/dmdirc/parser/irc/IRCParserTest.java
  79. 1
    1
      test/com/dmdirc/parser/irc/IRCStringConverterTest.java
  80. 1
    1
      test/com/dmdirc/parser/irc/ParserErrorTest.java
  81. 1
    1
      test/com/dmdirc/parser/irc/Process001Test.java
  82. 1
    1
      test/com/dmdirc/parser/irc/Process004005Test.java
  83. 1
    1
      test/com/dmdirc/parser/irc/ProcessJoinTest.java
  84. 1
    1
      test/com/dmdirc/parser/irc/ProcessModeTest.java
  85. 1
    1
      test/com/dmdirc/parser/irc/ProcessNamesTest.java
  86. 0
    4
      test/com/dmdirc/parser/irc/ProcessNickTest.java
  87. 1
    1
      test/com/dmdirc/parser/irc/ProcessPartTest.java
  88. 1
    1
      test/com/dmdirc/parser/irc/ProcessQuitTest.java
  89. 1
    1
      test/com/dmdirc/parser/irc/ProcessTopicTest.java
  90. 1
    1
      test/com/dmdirc/parser/irc/ProcessWhoTest.java
  91. 1
    1
      test/com/dmdirc/parser/irc/RegexStringListTest.java
  92. 1
    1
      test/com/dmdirc/parser/irc/ServerInfoTest.java
  93. 0
    3
      test/com/dmdirc/plugins/PluginInfoTest.java
  94. 1
    1
      test/com/dmdirc/ui/WindowManagerTest.java
  95. 1
    1
      test/com/dmdirc/ui/input/tabstyles/TabCompletionResultTest.java
  96. 1
    1
      test/com/dmdirc/ui/input/tabstyles/TabCompletionStyleTest.java
  97. 0
    4
      test/com/dmdirc/ui/messages/ColourManagerTest.java
  98. 1
    1
      test/com/dmdirc/ui/messages/FormatterTest.java
  99. 1
    4
      test/com/dmdirc/ui/messages/IntelligentLinkingTest.java
  100. 0
    0
      test/com/dmdirc/ui/messages/StyliserStylesTest.java

+ 1
- 1
test/com/dmdirc/IgnoreListTest.java View File

@@ -29,7 +29,7 @@ import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31 31
 
32
-public class IgnoreListTest extends junit.framework.TestCase {
32
+public class IgnoreListTest {
33 33
     
34 34
     private final String[][] tests = {
35 35
         {"a@b.c", "a@b\\.c"},

+ 1
- 1
test/com/dmdirc/ProgramErrorTest.java View File

@@ -33,7 +33,7 @@ import org.junit.Before;
33 33
 import org.junit.Test;
34 34
 import static org.junit.Assert.*;
35 35
 
36
-public class ProgramErrorTest extends junit.framework.TestCase {
36
+public class ProgramErrorTest {
37 37
     
38 38
     private ErrorLevel level;
39 39
     private String message;

+ 1
- 1
test/com/dmdirc/StringTranscoderTest.java View File

@@ -29,7 +29,7 @@ import java.nio.charset.Charset;
29 29
 import org.junit.Test;
30 30
 import static org.junit.Assert.*;
31 31
 
32
-public class StringTranscoderTest extends junit.framework.TestCase {
32
+public class StringTranscoderTest {
33 33
 
34 34
     @Test
35 35
     public void testTranscode() {

+ 1
- 1
test/com/dmdirc/WritableFrameContainerTest.java View File

@@ -28,7 +28,7 @@ import java.util.Arrays;
28 28
 import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31
-public class WritableFrameContainerTest extends junit.framework.TestCase {
31
+public class WritableFrameContainerTest {
32 32
     
33 33
     @Test
34 34
     public void testGetNumLines() {

+ 0
- 4
test/com/dmdirc/actions/ActionComparisonNamesTest.java View File

@@ -56,9 +56,5 @@ public class ActionComparisonNamesTest {
56 56
         
57 57
         return res;
58 58
     }
59
-    
60
-    public static junit.framework.Test suite() {
61
-        return new junit.framework.JUnit4TestAdapter(ActionComparisonNamesTest.class);
62
-    }    
63 59
 
64 60
 }

+ 4
- 5
test/com/dmdirc/actions/ActionComponentChainTest.java View File

@@ -22,6 +22,8 @@
22 22
 
23 23
 package com.dmdirc.actions;
24 24
 
25
+import com.dmdirc.config.IdentityManager;
26
+
25 27
 import org.junit.Before;
26 28
 import org.junit.Test;
27 29
 import static org.junit.Assert.*;
@@ -30,6 +32,7 @@ public class ActionComponentChainTest {
30 32
 
31 33
     @Before
32 34
     public void setUp() throws Exception {
35
+        IdentityManager.load();
33 36
         ActionManager.init();
34 37
     }
35 38
 
@@ -111,10 +114,6 @@ public class ActionComponentChainTest {
111 114
     public void testEmptyToString() {
112 115
         final ActionComponentChain chain = new ActionComponentChain(String.class, "");
113 116
         chain.toString();
114
-    }    
115
-    
116
-    public static junit.framework.Test suite() {
117
-        return new junit.framework.JUnit4TestAdapter(ActionComponentChainTest.class);
118
-    }    
117
+    }      
119 118
 
120 119
 }

+ 7
- 3
test/com/dmdirc/actions/ActionConditionTest.java View File

@@ -22,14 +22,18 @@
22 22
 
23 23
 package com.dmdirc.actions;
24 24
 
25
+import com.dmdirc.config.IdentityManager;
26
+
25 27
 import org.junit.Before;
28
+import org.junit.BeforeClass;
26 29
 import org.junit.Test;
27 30
 import static org.junit.Assert.*;
28 31
 
29
-public class ActionConditionTest extends junit.framework.TestCase {
32
+public class ActionConditionTest {
30 33
 
31
-    @Before
32
-    public void setUp() throws Exception {
34
+    @BeforeClass
35
+    public static void setUp() throws Exception {
36
+        IdentityManager.load();
33 37
         ActionManager.init();
34 38
     }
35 39
 

+ 1
- 1
test/com/dmdirc/actions/ActionGroupTest.java View File

@@ -30,7 +30,7 @@ import java.util.Map;
30 30
 import org.junit.Test;
31 31
 import static org.junit.Assert.*;
32 32
 
33
-public class ActionGroupTest extends junit.framework.TestCase {
33
+public class ActionGroupTest {
34 34
 
35 35
     @Test
36 36
     public void testGetAuthor() {

+ 5
- 3
test/com/dmdirc/actions/ActionManagerTest.java View File

@@ -22,6 +22,7 @@
22 22
 package com.dmdirc.actions;
23 23
 
24 24
 import com.dmdirc.actions.interfaces.ActionType;
25
+import com.dmdirc.config.IdentityManager;
25 26
 import java.io.File;
26 27
 
27 28
 import java.util.ArrayList;
@@ -30,17 +31,18 @@ import org.junit.BeforeClass;
30 31
 import org.junit.Test;
31 32
 import static org.junit.Assert.*;
32 33
 
33
-public class ActionManagerTest extends junit.framework.TestCase {
34
+public class ActionManagerTest {
34 35
     
35 36
     @BeforeClass
36
-    public void setUpClass() throws Exception {
37
+    public static void setUpClass() throws Exception {
38
+        IdentityManager.load();
37 39
         ActionManager.init();
38 40
         
39 41
         tearDownClass();
40 42
     }
41 43
     
42 44
     @AfterClass
43
-    public void tearDownClass() throws Exception {
45
+    public static void tearDownClass() throws Exception {
44 46
         if (ActionManager.getGroups().containsKey("unit-test")) {
45 47
             ActionManager.removeGroup("unit-test");
46 48
         }

+ 8
- 1
test/com/dmdirc/actions/ActionModelTest.java View File

@@ -23,15 +23,22 @@
23 23
 package com.dmdirc.actions;
24 24
 
25 25
 import com.dmdirc.actions.interfaces.ActionType;
26
+import com.dmdirc.config.IdentityManager;
26 27
 
27 28
 import java.util.ArrayList;
28 29
 import java.util.Arrays;
29 30
 import java.util.List;
30 31
 
32
+import org.junit.BeforeClass;
31 33
 import org.junit.Test;
32 34
 import static org.junit.Assert.*;
33 35
 
34
-public class ActionModelTest extends junit.framework.TestCase {
36
+public class ActionModelTest {
37
+
38
+    @BeforeClass
39
+    public static void setUpClass() {
40
+        IdentityManager.load();
41
+    }
35 42
 
36 43
     @Test
37 44
     public void testConditions() {

+ 4
- 3
test/com/dmdirc/actions/ActionTest.java View File

@@ -35,13 +35,14 @@ import java.util.ArrayList;
35 35
 import java.util.Arrays;
36 36
 
37 37
 import org.junit.Before;
38
+import org.junit.BeforeClass;
38 39
 import org.junit.Test;
39 40
 import static org.junit.Assert.*;
40 41
 
41
-public class ActionTest extends junit.framework.TestCase {
42
+public class ActionTest {
42 43
 
43
-    @Before
44
-    public void setUp() throws Exception {
44
+    @BeforeClass
45
+    public static void setUp() throws Exception {
45 46
         IdentityManager.load();
46 47
         ActionManager.init();
47 48
     }

+ 1
- 1
test/com/dmdirc/actions/ActionTypeComparatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ActionTypeComparatorTest extends junit.framework.TestCase {
27
+public class ActionTypeComparatorTest {
28 28
 
29 29
     @Test
30 30
     public void testCompare() {

+ 1
- 1
test/com/dmdirc/actions/ConditionTreeTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.actions;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class ConditionTreeTest extends junit.framework.TestCase {
28
+public class ConditionTreeTest {
29 29
 
30 30
     @Test
31 31
     public void testParseString() {

+ 1
- 1
test/com/dmdirc/actions/CoreActionComparisonTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class CoreActionComparisonTest extends junit.framework.TestCase {
27
+public class CoreActionComparisonTest {
28 28
 
29 29
     @Test
30 30
     public void testStringRegex() {

+ 1
- 1
test/com/dmdirc/actions/CoreActionTypeTest.java View File

@@ -25,7 +25,7 @@ import com.dmdirc.actions.metatypes.PluginEvents;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class CoreActionTypeTest extends junit.framework.TestCase {
28
+public class CoreActionTypeTest {
29 29
 
30 30
     @Test
31 31
     public void testGetName() {

+ 0
- 4
test/com/dmdirc/actions/StringComponentsTest.java View File

@@ -79,9 +79,5 @@ public class StringComponentsTest {
79 79
             {"abc foo def", "foo"}
80 80
         });
81 81
     }
82
-    
83
-    public static junit.framework.Test suite() {
84
-        return new junit.framework.JUnit4TestAdapter(StringComponentsTest.class);
85
-    }    
86 82
 
87 83
 }

+ 1
- 1
test/com/dmdirc/actions/metatypes/ActionEventsTest.java View File

@@ -25,7 +25,7 @@ import com.dmdirc.actions.interfaces.ActionMetaType;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class ActionEventsTest extends junit.framework.TestCase {
28
+public class ActionEventsTest {
29 29
 
30 30
     @Test
31 31
     public void testArity() {

+ 1
- 1
test/com/dmdirc/actions/metatypes/ChannelEventsTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions.metatypes;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ChannelEventsTest extends junit.framework.TestCase {
27
+public class ChannelEventsTest {
28 28
 
29 29
     @Test
30 30
     public void testArity() {

+ 1
- 1
test/com/dmdirc/actions/metatypes/ClientEventsTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions.metatypes;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ClientEventsTest extends junit.framework.TestCase {
27
+public class ClientEventsTest {
28 28
 
29 29
     @Test
30 30
     public void testArity() {

+ 1
- 1
test/com/dmdirc/actions/metatypes/PluginEventsTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions.metatypes;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class PluginEventsTest extends junit.framework.TestCase {
27
+public class PluginEventsTest {
28 28
 
29 29
     @Test
30 30
     public void testArity() {

+ 1
- 1
test/com/dmdirc/actions/metatypes/QueryEventsTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions.metatypes;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class QueryEventsTest extends junit.framework.TestCase {
27
+public class QueryEventsTest {
28 28
 
29 29
     @Test
30 30
     public void testArity() {

+ 1
- 1
test/com/dmdirc/actions/metatypes/ServerEventsTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.actions.metatypes;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ServerEventsTest extends junit.framework.TestCase {
27
+public class ServerEventsTest {
28 28
 
29 29
     @Test
30 30
     public void testArity() {

+ 1
- 1
test/com/dmdirc/actions/wrappers/AliasTest.java View File

@@ -26,7 +26,7 @@ import java.util.Arrays;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class AliasTest extends junit.framework.TestCase {
29
+public class AliasTest {
30 30
 
31 31
     @Test
32 32
     public void testBasics() {

+ 7
- 0
test/com/dmdirc/actions/wrappers/AliasWrapperTest.java View File

@@ -28,15 +28,22 @@ import com.dmdirc.actions.CoreActionComparison;
28 28
 import com.dmdirc.actions.CoreActionComponent;
29 29
 import com.dmdirc.actions.CoreActionType;
30 30
 import com.dmdirc.actions.interfaces.ActionType;
31
+import com.dmdirc.config.IdentityManager;
31 32
 
32 33
 import java.util.ArrayList;
33 34
 import java.util.List;
34 35
 
36
+import org.junit.BeforeClass;
35 37
 import org.junit.Test;
36 38
 import static org.junit.Assert.*;
37 39
 
38 40
 public class AliasWrapperTest {
39 41
 
42
+    @BeforeClass
43
+    public static void setupClass() {
44
+        IdentityManager.load();
45
+    }
46
+
40 47
     @Test
41 48
     public void testNormal() {
42 49
         final List<ActionCondition> conditions = new ArrayList<ActionCondition>();

+ 1
- 5
test/com/dmdirc/addons/dcc/IpToLongTest.java View File

@@ -63,9 +63,5 @@ public class IpToLongTest {
63 63
 
64 64
         return Arrays.asList(tests);
65 65
     }
66
-    
67
-    public static junit.framework.Test suite() {
68
-        return new junit.framework.JUnit4TestAdapter(IpToLongTest.class);
69
-    }
70
-    
66
+
71 67
 }

+ 1
- 1
test/com/dmdirc/addons/identd/IdentClientTest.java View File

@@ -29,7 +29,7 @@ import org.junit.BeforeClass;
29 29
 import org.junit.Test;
30 30
 import static org.junit.Assert.*;
31 31
 
32
-public class IdentClientTest extends junit.framework.TestCase {
32
+public class IdentClientTest {
33 33
 
34 34
     @BeforeClass
35 35
     public static void setUpClass() throws Exception {

+ 0
- 4
test/com/dmdirc/addons/logging/LoggingPluginTest.java View File

@@ -103,9 +103,5 @@ public class LoggingPluginTest {
103 103
         assertTrue(lp.lines.get("foo!bar@baz").get(0).indexOf("closed") > -1);
104 104
         lp.lines.clear();
105 105
     }
106
-    
107
-    public static junit.framework.Test suite() {
108
-        return new junit.framework.JUnit4TestAdapter(LoggingPluginTest.class);
109
-    }
110 106
 
111 107
 }

+ 0
- 3
test/com/dmdirc/addons/logging/ReverseFileReaderTest.java View File

@@ -160,7 +160,4 @@ public class ReverseFileReaderTest {
160 160
         assertEquals((byte) 100, reader.getSeekLength());
161 161
     }
162 162
 
163
-    public static junit.framework.Test suite() {
164
-        return new junit.framework.JUnit4TestAdapter(ReverseFileReaderTest.class);
165
-    }
166 163
 }

+ 1
- 1
test/com/dmdirc/addons/mediasource_vlc/VlcMediaSourcePluginTest.java View File

@@ -28,7 +28,7 @@ import java.io.IOException;
28 28
 import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31
-public class VlcMediaSourcePluginTest extends junit.framework.TestCase {
31
+public class VlcMediaSourcePluginTest {
32 32
 
33 33
     @Test
34 34
     public void testProcessInformation1() throws IOException {

+ 1
- 1
test/com/dmdirc/addons/ui_swing/UIUtilitiesTest.java View File

@@ -35,7 +35,7 @@ import javax.swing.text.JTextComponent;
35 35
 import org.junit.Test;
36 36
 import static org.junit.Assert.*;
37 37
 
38
-public class UIUtilitiesTest extends junit.framework.TestCase {
38
+public class UIUtilitiesTest {
39 39
     
40 40
     @Test
41 41
     public void testAddUndoManager() {

+ 0
- 4
test/com/dmdirc/addons/ui_swing/components/InputTextFrameTest.java View File

@@ -162,10 +162,6 @@ public class InputTextFrameTest implements UITestIface {
162 162
         }
163 163
     }
164 164
 
165
-    public static junit.framework.Test suite() {
166
-        return new junit.framework.JUnit4TestAdapter(InputTextFrameTest.class);
167
-    }
168
-
169 165
     protected void setupWindow(final ConfigManager configManager) {
170 166
         UIUtilities.initUISettings();
171 167
 

+ 0
- 4
test/com/dmdirc/addons/ui_swing/components/reorderablelist/ArrayListTransferHandlerTest.java View File

@@ -208,8 +208,4 @@ public class ArrayListTransferHandlerTest {
208 208
         assertEquals("456", list.getModel().getElementAt(1));
209 209
     }        
210 210
 
211
-    public static junit.framework.Test suite() {
212
-        return new junit.framework.JUnit4TestAdapter(ArrayListTransferHandlerTest.class);
213
-    }
214
-
215 211
 }

+ 0
- 4
test/com/dmdirc/addons/ui_swing/components/reorderablelist/ArrayListTransferableTest.java View File

@@ -66,9 +66,5 @@ public class ArrayListTransferableTest {
66 66
         
67 67
         assertFalse(alt.isDataFlavorSupported(null));
68 68
     }
69
-    
70
-    public static junit.framework.Test suite() {
71
-        return new junit.framework.JUnit4TestAdapter(ArrayListTransferableTest.class);
72
-    }
73 69
 
74 70
 }

+ 0
- 3
test/com/dmdirc/addons/ui_swing/dialogs/actioneditor/ActionEditorDialogTest.java View File

@@ -322,7 +322,4 @@ public class ActionEditorDialogTest implements UITestIface {
322 322
         window.show();
323 323
     }
324 324
 
325
-    public static junit.framework.Test suite() {
326
-        return new junit.framework.JUnit4TestAdapter(ActionEditorDialogTest.class);
327
-    }
328 325
 }

+ 0
- 4
test/com/dmdirc/addons/ui_swing/dialogs/actionsmanager/ActionsManagerDialogTest.java View File

@@ -227,8 +227,4 @@ public class ActionsManagerDialogTest implements UITestIface {
227 227
         window.show();
228 228
     }
229 229
 
230
-    public static junit.framework.Test suite() {
231
-        return new junit.framework.JUnit4TestAdapter(ActionsManagerDialogTest.class);
232
-    }
233
-
234 230
 }

+ 0
- 4
test/com/dmdirc/addons/ui_swing/dialogs/sslcertificate/SSLCertificateDialogTest.java View File

@@ -117,10 +117,6 @@ public class SSLCertificateDialogTest implements UITestIface {
117 117
         window.show();
118 118
     }
119 119
 
120
-    public static junit.framework.Test suite() {
121
-        return new junit.framework.JUnit4TestAdapter(SSLCertificateDialogTest.class);
122
-    }
123
-
124 120
     private static class CertificateListCellReader extends BasicJListCellReader {
125 121
 
126 122
         public String valueAt(JList arg0, int arg1) {

+ 1
- 1
test/com/dmdirc/addons/urlcatcher/UrlCatcherPluginTest.java View File

@@ -27,7 +27,7 @@ import com.dmdirc.config.IdentityManager;
27 27
 import org.junit.Test;
28 28
 import static org.junit.Assert.*;
29 29
 
30
-public class UrlCatcherPluginTest extends junit.framework.TestCase {
30
+public class UrlCatcherPluginTest {
31 31
 
32 32
     @Test
33 33
     public void testURLCounting() {

+ 6
- 6
test/com/dmdirc/commandparser/CommandTypeTest.java View File

@@ -35,14 +35,14 @@ import com.dmdirc.ui.interfaces.InputWindow;
35 35
 import org.junit.Test;
36 36
 import static org.junit.Assert.*;
37 37
 
38
-public class CommandTypeTest extends junit.framework.TestCase {
38
+public class CommandTypeTest {
39 39
 
40 40
     @Test
41 41
     public void testGlobal() {
42 42
         final Command command = new GlobalCommand() {
43 43
 
44 44
             @Override
45
-            public void execute(InputWindow origin, boolean isSilent, String... args) {
45
+            public void execute(InputWindow origin, boolean isSilent, CommandArguments args) {
46 46
                 throw new UnsupportedOperationException("Not supported yet.");
47 47
             }
48 48
 
@@ -70,7 +70,7 @@ public class CommandTypeTest extends junit.framework.TestCase {
70 70
         final Command command = new ServerCommand() {
71 71
 
72 72
             @Override
73
-            public void execute(InputWindow origin, Server server, boolean isSilent, String... args) {
73
+            public void execute(InputWindow origin, Server server, boolean isSilent, CommandArguments args) {
74 74
                 throw new UnsupportedOperationException("Not supported yet.");
75 75
             }
76 76
 
@@ -114,7 +114,7 @@ public class CommandTypeTest extends junit.framework.TestCase {
114 114
 
115 115
             @Override
116 116
             public void execute(InputWindow origin, Server server,
117
-                    MessageTarget target, boolean isSilent, String... args) {
117
+                    MessageTarget target, boolean isSilent, CommandArguments args) {
118 118
                 throw new UnsupportedOperationException("Not supported yet.");
119 119
             }
120 120
         };
@@ -142,7 +142,7 @@ public class CommandTypeTest extends junit.framework.TestCase {
142 142
 
143 143
             @Override
144 144
             public void execute(InputWindow origin, Server server,
145
-                    Channel channel, boolean isSilent, String... args) {
145
+                    Channel channel, boolean isSilent, CommandArguments args) {
146 146
                 throw new UnsupportedOperationException("Not supported yet.");
147 147
             }
148 148
         };
@@ -171,7 +171,7 @@ public class CommandTypeTest extends junit.framework.TestCase {
171 171
 
172 172
             @Override
173 173
             public void execute(InputWindow origin, Server server, Query query,
174
-                    boolean isSilent, String... args) {
174
+                    boolean isSilent, CommandArguments args) {
175 175
                 throw new UnsupportedOperationException("Not supported yet.");
176 176
             }
177 177
         };

+ 15
- 9
test/com/dmdirc/commandparser/commands/HelpTest.java View File

@@ -21,10 +21,14 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands;
23 23
 
24
+import com.dmdirc.commandparser.CommandInfo;
24 25
 import com.dmdirc.commandparser.CommandManager;
25 26
 import com.dmdirc.commandparser.CommandType;
27
+import com.dmdirc.config.IdentityManager;
28
+
26 29
 import java.util.LinkedList;
27 30
 import java.util.List;
31
+import org.junit.BeforeClass;
28 32
 import org.junit.Test;
29 33
 import org.junit.runner.RunWith;
30 34
 import org.junit.runners.Parameterized;
@@ -33,26 +37,32 @@ import static org.junit.Assert.*;
33 37
 @RunWith(Parameterized.class)
34 38
 public class HelpTest {
35 39
 
36
-    private Command command;
40
+    @BeforeClass
41
+    public static void setUpClass() throws Exception {
42
+        IdentityManager.load();
43
+    }
44
+
45
+    private CommandInfo info;
37 46
 
38
-    public HelpTest(final Command command) {
39
-        this.command = command;
47
+    public HelpTest(final CommandInfo info) {
48
+        this.info = info;
40 49
     }
41 50
 
42 51
     @Test
43 52
     public void testHelp() {
44 53
         assertTrue("Command's help output should start with its name ("
45
-                + command.getName() + ")", command.getHelp().startsWith(command.getName()));
54
+                + info.getName() + ")", info.getHelp().startsWith(info.getName()));
46 55
     }
47 56
 
48 57
     @Parameterized.Parameters
49 58
     public static List<Object[]> data() {
50 59
         final List<Object[]> res = new LinkedList<Object[]>();
51 60
 
61
+        IdentityManager.load();
52 62
         CommandManager.initCommands();
53 63
 
54 64
         for (CommandType type : CommandType.values()) {
55
-            for (Command command : CommandManager.getCommands(type)) {
65
+            for (CommandInfo command : CommandManager.getCommands(type).keySet()) {
56 66
                 if (command.showInHelp()) {
57 67
                     res.add(new Object[]{command});
58 68
                 }
@@ -62,8 +72,4 @@ public class HelpTest {
62 72
         return res;
63 73
     }
64 74
     
65
-    public static junit.framework.Test suite() {
66
-        return new junit.framework.JUnit4TestAdapter(HelpTest.class);
67
-    }
68
-    
69 75
 }

+ 10
- 2
test/com/dmdirc/commandparser/commands/channel/BanTest.java View File

@@ -22,18 +22,26 @@
22 22
 
23 23
 package com.dmdirc.commandparser.commands.channel;
24 24
 
25
+import com.dmdirc.config.IdentityManager;
26
+import com.dmdirc.commandparser.CommandArguments;
25 27
 import com.dmdirc.harness.TestInputWindow;
28
+import org.junit.BeforeClass;
26 29
 import org.junit.Test;
27 30
 import static org.junit.Assert.*;
28 31
 
29
-public class BanTest extends junit.framework.TestCase {
32
+public class BanTest {
33
+
34
+    @BeforeClass
35
+    public static void setUpClass() throws Exception {
36
+        IdentityManager.load();
37
+    }
30 38
     
31 39
     private final Ban command = new Ban();
32 40
 
33 41
     @Test
34 42
     public void testUsage() {
35 43
         final TestInputWindow tiw = new TestInputWindow();
36
-        command.execute(tiw, null, null, false, new String[0]);
44
+        command.execute(tiw, null, null, false, new CommandArguments("/ban"));
37 45
         
38 46
         assertTrue(tiw.lines.containsKey("commandUsage"));
39 47
     }

+ 12
- 4
test/com/dmdirc/commandparser/commands/channel/SetNickColourTest.java View File

@@ -21,18 +21,26 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.channel;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestInputWindow;
27
+import org.junit.BeforeClass;
25 28
 import org.junit.Test;
26 29
 import static org.junit.Assert.*;
27 30
 
28
-public class SetNickColourTest extends junit.framework.TestCase {
31
+public class SetNickColourTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
29 37
     
30 38
     private final SetNickColour command = new SetNickColour();
31 39
 
32 40
     @Test
33 41
     public void testUsageNoArgs() {
34 42
         final TestInputWindow tiw = new TestInputWindow();
35
-        command.execute(tiw, null, null, false, new String[0]);
43
+        command.execute(tiw, null, null, false, new CommandArguments("/foo"));
36 44
         
37 45
         assertTrue(tiw.lines.containsKey("commandUsage"));
38 46
     }
@@ -40,7 +48,7 @@ public class SetNickColourTest extends junit.framework.TestCase {
40 48
     @Test
41 49
     public void testUsageNicklist() {
42 50
         final TestInputWindow tiw = new TestInputWindow();
43
-        command.execute(tiw, null, null, false, new String[]{"--nicklist"});
51
+        command.execute(tiw, null, null, false, new CommandArguments("/foo --nicklist"));
44 52
         
45 53
         assertTrue(tiw.lines.containsKey("commandUsage"));
46 54
     }    
@@ -48,7 +56,7 @@ public class SetNickColourTest extends junit.framework.TestCase {
48 56
     @Test
49 57
     public void testUsageText() {
50 58
         final TestInputWindow tiw = new TestInputWindow();
51
-        command.execute(tiw, null, null, false, new String[]{"--text"});
59
+        command.execute(tiw, null, null, false, new CommandArguments("/foo --text"));
52 60
         
53 61
         assertTrue(tiw.lines.containsKey("commandUsage"));
54 62
     }       

+ 11
- 3
test/com/dmdirc/commandparser/commands/chat/MeTest.java View File

@@ -21,19 +21,27 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.chat;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestMessageTarget;
25 27
 import com.dmdirc.harness.TestInputWindow;
28
+import org.junit.BeforeClass;
26 29
 import org.junit.Test;
27 30
 import static org.junit.Assert.*;
28 31
 
29
-public class MeTest extends junit.framework.TestCase {
32
+public class MeTest {
33
+
34
+    @BeforeClass
35
+    public static void setUpClass() throws Exception {
36
+        IdentityManager.load();
37
+    }
30 38
     
31 39
     private final Me command = new Me();
32 40
 
33 41
     @Test
34 42
     public void testUsage() {
35 43
         final TestInputWindow tiw = new TestInputWindow();
36
-        command.execute(tiw, null, null, false, new String[0]);
44
+        command.execute(tiw, null, null, false, new CommandArguments("/foo"));
37 45
         
38 46
         assertTrue(tiw.lines.containsKey("commandUsage"));
39 47
     }
@@ -41,7 +49,7 @@ public class MeTest extends junit.framework.TestCase {
41 49
     @Test
42 50
     public void testSend() {
43 51
         final TestMessageTarget mtt = new TestMessageTarget();
44
-        command.execute(null, null, mtt, false, new String[]{"hello", "meep", "moop"});
52
+        command.execute(null, null, mtt, false, new CommandArguments("/foo hello meep moop"));
45 53
         assertEquals("hello meep moop", mtt.action);
46 54
     }
47 55
 }

+ 11
- 3
test/com/dmdirc/commandparser/commands/global/AliasCommandTest.java View File

@@ -21,18 +21,26 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.global;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestInputWindow;
27
+import org.junit.BeforeClass;
25 28
 import org.junit.Test;
26 29
 import static org.junit.Assert.*;
27 30
 
28
-public class AliasCommandTest extends junit.framework.TestCase {
31
+public class AliasCommandTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
29 37
 
30 38
     private final AliasCommand command = new AliasCommand();
31 39
 
32 40
     @Test
33 41
     public void testUsageNoArgs() {
34 42
         final TestInputWindow tiw = new TestInputWindow();
35
-        command.execute(tiw, false, new String[0]);
43
+        command.execute(tiw, false, new CommandArguments("/foo"));
36 44
         
37 45
         assertTrue(tiw.lines.containsKey("commandUsage"));
38 46
     }
@@ -40,7 +48,7 @@ public class AliasCommandTest extends junit.framework.TestCase {
40 48
     @Test
41 49
     public void testUsageOneArg() {
42 50
         final TestInputWindow tiw = new TestInputWindow();
43
-        command.execute(tiw, false, new String[]{"--remove"});
51
+        command.execute(tiw, false, new CommandArguments("/foo --remove"));
44 52
         
45 53
         assertTrue(tiw.lines.containsKey("commandUsage"));
46 54
     }    

+ 11
- 3
test/com/dmdirc/commandparser/commands/global/DebugTest.java View File

@@ -21,18 +21,26 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.global;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestInputWindow;
27
+import org.junit.BeforeClass;
25 28
 import org.junit.Test;
26 29
 import static org.junit.Assert.*;
27 30
 
28
-public class DebugTest extends junit.framework.TestCase {
31
+public class DebugTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
29 37
     
30 38
     private final Debug command = new Debug();
31 39
 
32 40
     @Test
33 41
     public void testUsage() {
34 42
         final TestInputWindow tiw = new TestInputWindow();
35
-        command.execute(tiw, false, new String[0]);
43
+        command.execute(tiw, false, new CommandArguments("/foo"));
36 44
         
37 45
         assertTrue(tiw.lines.containsKey("commandUsage"));
38 46
     }
@@ -40,7 +48,7 @@ public class DebugTest extends junit.framework.TestCase {
40 48
     @Test
41 49
     public void testInvalidArg() {
42 50
         final TestInputWindow tiw = new TestInputWindow();
43
-        command.execute(tiw, false, new String[]{"flubadee"});
51
+        command.execute(tiw, false, new CommandArguments("/foo flubadee"));
44 52
         
45 53
         assertTrue(tiw.lines.containsKey("commandError"));
46 54
     }    

+ 11
- 3
test/com/dmdirc/commandparser/commands/global/IfpluginTest.java View File

@@ -21,18 +21,26 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.global;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestInputWindow;
27
+import org.junit.BeforeClass;
25 28
 import org.junit.Test;
26 29
 import static org.junit.Assert.*;
27 30
 
28
-public class IfpluginTest extends junit.framework.TestCase {
31
+public class IfpluginTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
29 37
     
30 38
     private final Ifplugin command = new Ifplugin();
31 39
 
32 40
     @Test
33 41
     public void testUsageNoArgs() {
34 42
         final TestInputWindow tiw = new TestInputWindow();
35
-        command.execute(tiw, false, new String[0]);
43
+        command.execute(tiw, false, new CommandArguments("/foo"));
36 44
         
37 45
         assertTrue(tiw.lines.containsKey("commandUsage"));
38 46
     }
@@ -40,7 +48,7 @@ public class IfpluginTest extends junit.framework.TestCase {
40 48
     @Test
41 49
     public void testUsageOneArg() {
42 50
         final TestInputWindow tiw = new TestInputWindow();
43
-        command.execute(tiw, false, new String[]{"moo"});
51
+        command.execute(tiw, false, new CommandArguments("/foo bar"));
44 52
         
45 53
         assertTrue(tiw.lines.containsKey("commandUsage"));
46 54
     }    

+ 13
- 5
test/com/dmdirc/commandparser/commands/global/NewServerTest.java View File

@@ -21,18 +21,26 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.global;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestInputWindow;
27
+import org.junit.BeforeClass;
25 28
 import org.junit.Test;
26 29
 import static org.junit.Assert.*;
27 30
 
28
-public class NewServerTest extends junit.framework.TestCase {
31
+public class NewServerTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
29 37
 
30 38
     private final NewServer command = new NewServer();
31 39
 
32 40
     @Test
33 41
     public void testUsageNoArgs() {
34 42
         final TestInputWindow tiw = new TestInputWindow();
35
-        command.execute(tiw, false, new String[0]);
43
+        command.execute(tiw, false, new CommandArguments("/foo"));
36 44
         
37 45
         assertTrue(tiw.lines.containsKey("commandUsage"));
38 46
     }
@@ -40,7 +48,7 @@ public class NewServerTest extends junit.framework.TestCase {
40 48
     @Test
41 49
     public void testInvalidPort() {
42 50
         final TestInputWindow tiw = new TestInputWindow();
43
-        command.execute(tiw, false, new String[]{"foo:abc"});
51
+        command.execute(tiw, false, new CommandArguments("/foo foo:abc"));
44 52
         
45 53
         assertTrue(tiw.lines.containsKey("commandError"));
46 54
     }
@@ -48,7 +56,7 @@ public class NewServerTest extends junit.framework.TestCase {
48 56
     @Test
49 57
     public void testOutOfRangePort1() {
50 58
         final TestInputWindow tiw = new TestInputWindow();
51
-        command.execute(tiw, false, new String[]{"foo:0"});
59
+        command.execute(tiw, false, new CommandArguments("/foo foo:0"));
52 60
         
53 61
         assertTrue(tiw.lines.containsKey("commandError"));
54 62
     }
@@ -56,7 +64,7 @@ public class NewServerTest extends junit.framework.TestCase {
56 64
     @Test
57 65
     public void testOutOfRangePort2() {
58 66
         final TestInputWindow tiw = new TestInputWindow();
59
-        command.execute(tiw, false, new String[]{"foo:65537"});
67
+        command.execute(tiw, false, new CommandArguments("/foo foo:65537"));
60 68
         
61 69
         assertTrue(tiw.lines.containsKey("commandError"));
62 70
     }

+ 13
- 5
test/com/dmdirc/commandparser/commands/server/ChangeServerTest.java View File

@@ -21,18 +21,26 @@
21 21
  */
22 22
 package com.dmdirc.commandparser.commands.server;
23 23
 
24
+import com.dmdirc.commandparser.CommandArguments;
25
+import com.dmdirc.config.IdentityManager;
24 26
 import com.dmdirc.harness.TestInputWindow;
27
+import org.junit.BeforeClass;
25 28
 import org.junit.Test;
26 29
 import static org.junit.Assert.*;
27 30
 
28
-public class ChangeServerTest extends junit.framework.TestCase {
31
+public class ChangeServerTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
29 37
 
30 38
     private final ChangeServer command = new ChangeServer();
31 39
 
32 40
     @Test
33 41
     public void testUsageNoArgs() {
34 42
         final TestInputWindow tiw = new TestInputWindow();
35
-        command.execute(tiw, null, false, new String[0]);
43
+        command.execute(tiw, null, false, new CommandArguments("/server"));
36 44
         
37 45
         assertTrue(tiw.lines.containsKey("commandUsage"));
38 46
     }
@@ -40,7 +48,7 @@ public class ChangeServerTest extends junit.framework.TestCase {
40 48
     @Test
41 49
     public void testInvalidPort() {
42 50
         final TestInputWindow tiw = new TestInputWindow();
43
-        command.execute(tiw, null, false, new String[]{"foo:abc"});
51
+        command.execute(tiw, null, false, new CommandArguments("/server foo:abc"));
44 52
         
45 53
         assertTrue(tiw.lines.containsKey("commandError"));
46 54
     }
@@ -48,7 +56,7 @@ public class ChangeServerTest extends junit.framework.TestCase {
48 56
     @Test
49 57
     public void testOutOfRangePort1() {
50 58
         final TestInputWindow tiw = new TestInputWindow();
51
-        command.execute(tiw, null, false, new String[]{"foo:0"});
59
+        command.execute(tiw, null, false, new CommandArguments("/server foo:0"));
52 60
         
53 61
         assertTrue(tiw.lines.containsKey("commandError"));
54 62
     }
@@ -56,7 +64,7 @@ public class ChangeServerTest extends junit.framework.TestCase {
56 64
     @Test
57 65
     public void testOutOfRangePort2() {
58 66
         final TestInputWindow tiw = new TestInputWindow();
59
-        command.execute(tiw, null, false, new String[]{"foo:65537"});
67
+        command.execute(tiw, null, false,new CommandArguments("/server foo:65537"));
60 68
         
61 69
         assertTrue(tiw.lines.containsKey("commandError"));
62 70
     }

+ 2
- 8
test/com/dmdirc/commandparser/parsers/CommandParserTest.java View File

@@ -25,6 +25,7 @@ import com.dmdirc.harness.TestCommandParser;
25 25
 import com.dmdirc.commandparser.CommandManager;
26 26
 import com.dmdirc.commandparser.commands.Command;
27 27
 import com.dmdirc.commandparser.commands.global.Echo;
28
+import com.dmdirc.config.IdentityManager;
28 29
 import com.dmdirc.ui.interfaces.InputWindow;
29 30
 
30 31
 import java.util.Arrays;
@@ -37,6 +38,7 @@ public class CommandParserTest {
37 38
 
38 39
     @BeforeClass
39 40
     public static void setUpClass() throws Exception {
41
+        IdentityManager.load();
40 42
         CommandManager.initCommands();
41 43
     }
42 44
 
@@ -49,7 +51,6 @@ public class CommandParserTest {
49 51
         assertNull(tcp.invalidCommand);
50 52
         assertNotNull(tcp.executedCommand);
51 53
         assertFalse(tcp.wasSilent);
52
-        assertTrue(Arrays.equals(tcp.commandArgs, new String[]{"this", "is", "a", "test"}));
53 54
         assertTrue(tcp.executedCommand instanceof Echo);
54 55
     }
55 56
 
@@ -62,7 +63,6 @@ public class CommandParserTest {
62 63
         assertNull(tcp.invalidCommand);
63 64
         assertNotNull(tcp.executedCommand);
64 65
         assertFalse(tcp.wasSilent);
65
-        assertTrue(Arrays.equals(tcp.commandArgs, new String[0]));
66 66
         assertTrue(tcp.executedCommand instanceof Echo);
67 67
     }
68 68
 
@@ -75,7 +75,6 @@ public class CommandParserTest {
75 75
         assertNull(tcp.invalidCommand);
76 76
         assertNotNull(tcp.executedCommand);
77 77
         assertTrue(tcp.wasSilent);
78
-        assertTrue(Arrays.equals(tcp.commandArgs, new String[0]));
79 78
         assertTrue(tcp.executedCommand instanceof Echo);
80 79
     }
81 80
 
@@ -88,7 +87,6 @@ public class CommandParserTest {
88 87
         assertNull(tcp.invalidCommand);
89 88
         assertNotNull(tcp.executedCommand);
90 89
         assertTrue(tcp.wasSilent);
91
-        assertTrue(Arrays.equals(tcp.commandArgs, new String[]{"this", "is", "a", "test"}));
92 90
         assertTrue(tcp.executedCommand instanceof Echo);
93 91
     }
94 92
 
@@ -156,8 +154,4 @@ public class CommandParserTest {
156 154
         assertEquals(0l, tcp.getCommandTime("echo"));
157 155
     }    
158 156
 
159
-    public static junit.framework.Test suite() {
160
-        return new junit.framework.JUnit4TestAdapter(CommandParserTest.class);
161
-    }
162
-
163 157
 }

+ 4
- 3
test/com/dmdirc/commandparser/parsers/GlobalCommandParserTest.java View File

@@ -24,13 +24,14 @@ package com.dmdirc.commandparser.parsers;
24 24
 
25 25
 import com.dmdirc.config.IdentityManager;
26 26
 import org.junit.Before;
27
+import org.junit.BeforeClass;
27 28
 import org.junit.Test;
28 29
 import static org.junit.Assert.*;
29 30
 
30
-public class GlobalCommandParserTest extends junit.framework.TestCase {
31
+public class GlobalCommandParserTest {
31 32
     
32
-    @Before
33
-    public void setUp() throws Exception {
33
+    @BeforeClass
34
+    public static void setUp() throws Exception {
34 35
         IdentityManager.load();
35 36
     }
36 37
 

+ 0
- 4
test/com/dmdirc/config/ConfigManagerTest.java View File

@@ -71,8 +71,4 @@ public class ConfigManagerTest {
71 71
         assertEquals(1, listener.count);        
72 72
     }    
73 73
     
74
-    public static junit.framework.Test suite() {
75
-        return new junit.framework.JUnit4TestAdapter(ConfigManagerTest.class);
76
-    }
77
-    
78 74
 }

+ 1
- 1
test/com/dmdirc/config/ConfigSourceTest.java View File

@@ -26,7 +26,7 @@ import java.awt.Color;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class ConfigSourceTest extends junit.framework.TestCase {
29
+public class ConfigSourceTest {
30 30
     
31 31
     private final TestConfigSource s = new TestConfigSource(); 
32 32
     

+ 1
- 1
test/com/dmdirc/config/ConfigTargetTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.config;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class ConfigTargetTest extends junit.framework.TestCase {
28
+public class ConfigTargetTest {
29 29
 
30 30
     @Test
31 31
     public void testDefault() {

+ 1
- 1
test/com/dmdirc/config/IdentityManagerTest.java View File

@@ -26,7 +26,7 @@ import org.junit.Before;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class IdentityManagerTest extends junit.framework.TestCase {
29
+public class IdentityManagerTest {
30 30
 
31 31
     @Before
32 32
     public void setUp() throws Exception {        

+ 0
- 4
test/com/dmdirc/config/IdentityTest.java View File

@@ -204,8 +204,4 @@ public class IdentityTest {
204 204
         assertEquals("test", listener.key);
205 205
     }
206 206
     
207
-    public static junit.framework.Test suite() {
208
-        return new junit.framework.JUnit4TestAdapter(IdentityTest.class);
209
-    }  
210
-    
211 207
 }

+ 1
- 1
test/com/dmdirc/config/InvalidIdentityFileExceptionTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.config;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class InvalidIdentityFileExceptionTest extends junit.framework.TestCase {
28
+public class InvalidIdentityFileExceptionTest {
29 29
 
30 30
     @Test
31 31
     public void testMessage() {

+ 0
- 4
test/com/dmdirc/config/prefs/PreferencesCategoryTest.java View File

@@ -109,8 +109,4 @@ public class PreferencesCategoryTest {
109 109
         assertSame(category, test.cat);
110 110
     }
111 111
 
112
-    public static junit.framework.Test suite() {
113
-        return new junit.framework.JUnit4TestAdapter(PreferencesCategoryTest.class);
114
-    }
115
-
116 112
 }

+ 0
- 3
test/com/dmdirc/config/prefs/PreferencesSettingTest.java View File

@@ -193,7 +193,4 @@ public class PreferencesSettingTest {
193 193
         assertEquals("def", IdentityManager.getConfigIdentity().getOption("unit-test", "ps"));
194 194
     }    
195 195
 
196
-    public static junit.framework.Test suite() {
197
-        return new junit.framework.JUnit4TestAdapter(PreferencesSettingTest.class);
198
-    }
199 196
 }

+ 8
- 1
test/com/dmdirc/config/prefs/validator/ActionGroupValidatorTest.java View File

@@ -23,10 +23,17 @@
23 23
 package com.dmdirc.config.prefs.validator;
24 24
 
25 25
 import com.dmdirc.actions.ActionManager;
26
+import com.dmdirc.config.IdentityManager;
27
+import org.junit.BeforeClass;
26 28
 import org.junit.Test;
27 29
 import static org.junit.Assert.*;
28 30
 
29
-public class ActionGroupValidatorTest extends junit.framework.TestCase {
31
+public class ActionGroupValidatorTest {
32
+
33
+    @BeforeClass
34
+    public static void setUpClass() throws Exception {
35
+        IdentityManager.load();
36
+    }
30 37
 
31 38
     @Test
32 39
     public void testValidate() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/FileNameValidatorTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.config.prefs.validator;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class FileNameValidatorTest extends junit.framework.TestCase {
28
+public class FileNameValidatorTest {
29 29
 
30 30
     @Test
31 31
     public void testValidate() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/NotEmptyValidatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.config.prefs.validator;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class NotEmptyValidatorTest extends junit.framework.TestCase {
27
+public class NotEmptyValidatorTest {
28 28
 
29 29
     @Test
30 30
     public void testValidate() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/NumericalValidatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.config.prefs.validator;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class NumericalValidatorTest extends junit.framework.TestCase {
27
+public class NumericalValidatorTest {
28 28
 
29 29
     @Test
30 30
     public void testGetMax() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/PermissiveValidatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.config.prefs.validator;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class PermissiveValidatorTest extends junit.framework.TestCase {
27
+public class PermissiveValidatorTest {
28 28
 
29 29
     @Test
30 30
     public void testValidate() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/PortValidatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.config.prefs.validator;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class PortValidatorTest extends junit.framework.TestCase {
27
+public class PortValidatorTest {
28 28
 
29 29
     @Test
30 30
     public void testBounds() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/RegexStringValidatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.config.prefs.validator;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class RegexStringValidatorTest extends junit.framework.TestCase {
27
+public class RegexStringValidatorTest {
28 28
 
29 29
     @Test
30 30
     public void testValidate() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/RegexValidatorTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.config.prefs.validator;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class RegexValidatorTest extends junit.framework.TestCase {
28
+public class RegexValidatorTest {
29 29
 
30 30
     @Test
31 31
     public void testValidate() {

+ 1
- 1
test/com/dmdirc/config/prefs/validator/StringLengthValidatorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.config.prefs.validator;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class StringLengthValidatorTest extends junit.framework.TestCase {
27
+public class StringLengthValidatorTest {
28 28
 
29 29
     @Test
30 30
     public void testUnlimited() {

+ 1
- 5
test/com/dmdirc/config/prefs/validator/URLProtocolValidatorTest.java View File

@@ -26,12 +26,8 @@ import com.dmdirc.config.IdentityManager;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class URLProtocolValidatorTest extends junit.framework.TestCase {
29
+public class URLProtocolValidatorTest {
30 30
     
31
-    public URLProtocolValidatorTest(String testName) {
32
-        super(testName);
33
-    }
34
-
35 31
     @Test
36 32
     public void testValidate() {
37 33
         IdentityManager.load();

+ 1
- 1
test/com/dmdirc/config/prefs/validator/ValidatorChainTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.config.prefs.validator;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class ValidatorChainTest extends junit.framework.TestCase {
28
+public class ValidatorChainTest {
29 29
 
30 30
     @Test
31 31
     public void testValidate() {

+ 6
- 5
test/com/dmdirc/harness/TestCommandParser.java View File

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.harness;
24 24
 
25
+import com.dmdirc.commandparser.CommandArguments;
25 26
 import com.dmdirc.commandparser.parsers.*;
26 27
 import com.dmdirc.commandparser.CommandManager;
27 28
 import com.dmdirc.commandparser.CommandType;
@@ -36,7 +37,7 @@ public class TestCommandParser extends CommandParser {
36 37
 
37 38
     public boolean wasSilent;
38 39
 
39
-    public String[] commandArgs;
40
+    public CommandArguments commandArgs;
40 41
 
41 42
     public String invalidCommand;
42 43
 
@@ -47,7 +48,7 @@ public class TestCommandParser extends CommandParser {
47 48
 
48 49
     @Override
49 50
     protected void executeCommand(InputWindow origin, boolean isSilent,
50
-                                  Command command, String... args) {
51
+                                  Command command, CommandArguments args) {
51 52
         executedCommand = command;
52 53
         wasSilent = isSilent;
53 54
         commandArgs = args;
@@ -59,8 +60,8 @@ public class TestCommandParser extends CommandParser {
59 60
     }
60 61
 
61 62
     @Override
62
-    protected void handleInvalidCommand(InputWindow origin, String command,
63
-                                        String... args) {
64
-        invalidCommand = command;
63
+    protected void handleInvalidCommand(InputWindow origin,
64
+                                        CommandArguments args) {
65
+        invalidCommand = args.getCommandName();
65 66
     }
66 67
 }

+ 8
- 1
test/com/dmdirc/logger/DMDircExceptionHandlerTest.java View File

@@ -21,10 +21,17 @@
21 21
  */
22 22
 package com.dmdirc.logger;
23 23
 
24
+import com.dmdirc.config.IdentityManager;
25
+import org.junit.BeforeClass;
24 26
 import org.junit.Test;
25 27
 import static org.junit.Assert.*;
26 28
 
27
-public class DMDircExceptionHandlerTest extends junit.framework.TestCase {
29
+public class DMDircExceptionHandlerTest {
30
+
31
+    @BeforeClass
32
+    public static void setUpClass() throws Exception {
33
+        IdentityManager.load();
34
+    }
28 35
 
29 36
     @Test
30 37
     public void testUncaughtException() {

+ 1
- 1
test/com/dmdirc/logger/ErrorFixedStatusTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.logger;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ErrorFixedStatusTest extends junit.framework.TestCase {
27
+public class ErrorFixedStatusTest {
28 28
 
29 29
     @Test
30 30
     public void testToString() {

+ 1
- 1
test/com/dmdirc/logger/ErrorLevelTest.java View File

@@ -25,7 +25,7 @@ import javax.swing.Icon;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class ErrorLevelTest extends junit.framework.TestCase {
28
+public class ErrorLevelTest {
29 29
 
30 30
     @Test
31 31
     public void testToString() {

+ 1
- 1
test/com/dmdirc/logger/ErrorReportStatusTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.logger;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ErrorReportStatusTest extends junit.framework.TestCase {
27
+public class ErrorReportStatusTest {
28 28
 
29 29
     @Test
30 30
     public void testToString() {

+ 1
- 1
test/com/dmdirc/logger/NullOutputStreamTest.java View File

@@ -25,7 +25,7 @@ import java.io.IOException;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class NullOutputStreamTest extends junit.framework.TestCase {
28
+public class NullOutputStreamTest {
29 29
 
30 30
     @Test
31 31
     public void testWrite() {

+ 1
- 1
test/com/dmdirc/logger/ProgramErrorTest.java View File

@@ -26,7 +26,7 @@ import java.util.Date;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class ProgramErrorTest extends junit.framework.TestCase {
29
+public class ProgramErrorTest {
30 30
 
31 31
     @Test
32 32
     public void testConstructorNegativeID() {

+ 2
- 2
test/com/dmdirc/parser/irc/ChannelClientInfoTest.java View File

@@ -29,7 +29,7 @@ import java.util.Map;
29 29
 import org.junit.Test;
30 30
 import static org.junit.Assert.*;
31 31
 
32
-public class ChannelClientInfoTest extends junit.framework.TestCase {
32
+public class ChannelClientInfoTest {
33 33
         
34 34
     @Test
35 35
     public void testImportantMode() {
@@ -60,7 +60,7 @@ public class ChannelClientInfoTest extends junit.framework.TestCase {
60 60
         assertEquals("", cci.getImportantModePrefix());
61 61
         assertEquals("luser", cci.toString());
62 62
         assertEquals("luser", cci.toFullString());
63
-        assertEquals(0, cci.getImportantModeValue());
63
+        assertEquals(0l, cci.getImportantModeValue());
64 64
     }
65 65
     
66 66
     @Test

+ 1
- 1
test/com/dmdirc/parser/irc/ClientInfoTest.java View File

@@ -28,7 +28,7 @@ import java.util.Map;
28 28
 import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31
-public class ClientInfoTest extends junit.framework.TestCase {
31
+public class ClientInfoTest {
32 32
     
33 33
     @Test
34 34
     public void testMap() {

+ 0
- 4
test/com/dmdirc/parser/irc/IRCParserTest.java View File

@@ -495,9 +495,5 @@ public class IRCParserTest {
495 495
         assertEquals(ircd, parser.getIRCD(false));
496 496
         assertEquals(expected.toLowerCase(), parser.getIRCD(true).toLowerCase());
497 497
     }
498
-    
499
-    public static junit.framework.Test suite() {
500
-        return new junit.framework.JUnit4TestAdapter(IRCParserTest.class);
501
-    }
502 498
 
503 499
 }

+ 1
- 1
test/com/dmdirc/parser/irc/IRCStringConverterTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.parser.irc;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class IRCStringConverterTest extends junit.framework.TestCase {
27
+public class IRCStringConverterTest {
28 28
 
29 29
     @Test
30 30
     public void testCaseConversion() {

+ 1
- 1
test/com/dmdirc/parser/irc/ParserErrorTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.parser.irc;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class ParserErrorTest extends junit.framework.TestCase {
27
+public class ParserErrorTest {
28 28
 
29 29
     private final ParserError fatal = new ParserError(ParserError.ERROR_FATAL, "moo", "");
30 30
     private final ParserError error = new ParserError(ParserError.ERROR_ERROR, "moo", "last line");

+ 1
- 1
test/com/dmdirc/parser/irc/Process001Test.java View File

@@ -26,7 +26,7 @@ import com.dmdirc.harness.parser.TestParser;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class Process001Test extends junit.framework.TestCase {
29
+public class Process001Test {
30 30
        
31 31
     @Test
32 32
     public void testDuplicate001() {

+ 1
- 1
test/com/dmdirc/parser/irc/Process004005Test.java View File

@@ -27,7 +27,7 @@ import com.dmdirc.harness.parser.TestParser;
27 27
 import org.junit.Test;
28 28
 import static org.junit.Assert.*;
29 29
 
30
-public class Process004005Test extends junit.framework.TestCase {
30
+public class Process004005Test {
31 31
     
32 32
     private TestParser doCaseMappingTest(final String target, final int expected) {
33 33
         final TestParser parser = new TestParser();

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessJoinTest.java View File

@@ -30,7 +30,7 @@ import com.dmdirc.parser.irc.callbacks.CallbackNotFoundException;
30 30
 import org.junit.Test;
31 31
 import static org.junit.Assert.*;
32 32
 
33
-public class ProcessJoinTest extends junit.framework.TestCase {
33
+public class ProcessJoinTest {
34 34
     
35 35
     @Test
36 36
     public void testSelfJoinChannel() throws CallbackNotFoundException {

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessModeTest.java View File

@@ -28,7 +28,7 @@ import com.dmdirc.parser.irc.callbacks.CallbackNotFoundException;
28 28
 import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31
-public class ProcessModeTest extends junit.framework.TestCase {
31
+public class ProcessModeTest {
32 32
     
33 33
     @Test
34 34
     public void testBasicUmodes() throws CallbackNotFoundException {

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessNamesTest.java View File

@@ -29,7 +29,7 @@ import com.dmdirc.parser.irc.callbacks.interfaces.IErrorInfo;
29 29
 import org.junit.Test;
30 30
 import static org.junit.Assert.*;
31 31
 
32
-public class ProcessNamesTest extends junit.framework.TestCase {
32
+public class ProcessNamesTest {
33 33
     
34 34
     @Test
35 35
     public void testExternalNames() throws CallbackNotFoundException {

+ 0
- 4
test/com/dmdirc/parser/irc/ProcessNickTest.java View File

@@ -104,9 +104,5 @@ public class ProcessNickTest {
104 104
         assertNull(tinc.client);
105 105
         assertNull(tinc.oldNick);
106 106
     }
107
-    
108
-    public static junit.framework.Test suite() {
109
-        return new junit.framework.JUnit4TestAdapter(ProcessNickTest.class);
110
-    }
111 107
 
112 108
 }

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessPartTest.java View File

@@ -32,7 +32,7 @@ import com.dmdirc.parser.irc.callbacks.interfaces.IQuit;
32 32
 import org.junit.Test;
33 33
 import static org.junit.Assert.*;
34 34
 
35
-public class ProcessPartTest extends junit.framework.TestCase {
35
+public class ProcessPartTest {
36 36
     
37 37
     @Test
38 38
     public void testNormalPart() throws CallbackNotFoundException {

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessQuitTest.java View File

@@ -31,7 +31,7 @@ import com.dmdirc.parser.irc.callbacks.interfaces.IQuit;
31 31
 import org.junit.Test;
32 32
 import static org.junit.Assert.*;
33 33
 
34
-public class ProcessQuitTest extends junit.framework.TestCase {
34
+public class ProcessQuitTest {
35 35
     
36 36
     @Test
37 37
     public void testChannelQuit() throws CallbackNotFoundException {

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessTopicTest.java View File

@@ -29,7 +29,7 @@ import com.dmdirc.parser.irc.callbacks.interfaces.IChannelTopic;
29 29
 import org.junit.Test;
30 30
 import static org.junit.Assert.*;
31 31
 
32
-public class ProcessTopicTest extends junit.framework.TestCase {
32
+public class ProcessTopicTest {
33 33
     
34 34
     @Test
35 35
     public void testBasicTopic() throws CallbackNotFoundException {

+ 1
- 1
test/com/dmdirc/parser/irc/ProcessWhoTest.java View File

@@ -28,7 +28,7 @@ import com.dmdirc.parser.irc.callbacks.CallbackNotFoundException;
28 28
 import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31
-public class ProcessWhoTest extends junit.framework.TestCase {
31
+public class ProcessWhoTest {
32 32
 
33 33
     @Test
34 34
     public void testSelfAway() throws CallbackNotFoundException {

+ 1
- 1
test/com/dmdirc/parser/irc/RegexStringListTest.java View File

@@ -26,7 +26,7 @@ import java.util.List;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class RegexStringListTest extends junit.framework.TestCase {
29
+public class RegexStringListTest {
30 30
 
31 31
     @Test
32 32
     public void testAdd() {

+ 1
- 1
test/com/dmdirc/parser/irc/ServerInfoTest.java View File

@@ -25,7 +25,7 @@ package com.dmdirc.parser.irc;
25 25
 import org.junit.Test;
26 26
 import static org.junit.Assert.*;
27 27
 
28
-public class ServerInfoTest extends junit.framework.TestCase {
28
+public class ServerInfoTest {
29 29
     
30 30
     @Test
31 31
     public void testHost() {

+ 0
- 3
test/com/dmdirc/plugins/PluginInfoTest.java View File

@@ -114,7 +114,4 @@ public class PluginInfoTest {
114 114
         assertFalse(new File(pluginDir, "test.jar.update").exists());
115 115
     }
116 116
 
117
-    public static junit.framework.Test suite() {
118
-        return new junit.framework.JUnit4TestAdapter(PluginInfoTest.class);
119
-    }
120 117
 }

+ 1
- 1
test/com/dmdirc/ui/WindowManagerTest.java View File

@@ -29,7 +29,7 @@ import com.dmdirc.ui.interfaces.Window;
29 29
 import org.junit.Test;
30 30
 import static org.junit.Assert.*;
31 31
 
32
-public class WindowManagerTest extends junit.framework.TestCase {
32
+public class WindowManagerTest {
33 33
 
34 34
     @Test
35 35
     public void testFrameManagers() {

+ 1
- 1
test/com/dmdirc/ui/input/tabstyles/TabCompletionResultTest.java View File

@@ -24,7 +24,7 @@ package com.dmdirc.ui.input.tabstyles;
24 24
 import org.junit.Test;
25 25
 import static org.junit.Assert.*;
26 26
 
27
-public class TabCompletionResultTest extends junit.framework.TestCase {
27
+public class TabCompletionResultTest {
28 28
 
29 29
     @Test
30 30
     public void testConstructor() {

+ 1
- 1
test/com/dmdirc/ui/input/tabstyles/TabCompletionStyleTest.java View File

@@ -28,7 +28,7 @@ import com.dmdirc.ui.interfaces.InputWindow;
28 28
 import org.junit.Test;
29 29
 import static org.junit.Assert.*;
30 30
 
31
-public class TabCompletionStyleTest extends junit.framework.TestCase {
31
+public class TabCompletionStyleTest {
32 32
 
33 33
     @Test
34 34
     public void testSetContext() {

+ 0
- 4
test/com/dmdirc/ui/messages/ColourManagerTest.java View File

@@ -135,8 +135,4 @@ public class ColourManagerTest {
135 135
         IdentityManager.getConfigIdentity().unsetOption("colour", "4");
136 136
         assertEquals("ff0000", ColourManager.getHex(ColourManager.getColour(4)).toLowerCase());
137 137
     }    
138
-    
139
-    public static junit.framework.Test suite() {
140
-        return new junit.framework.JUnit4TestAdapter(ColourManagerTest.class);
141
-    }
142 138
 }

+ 1
- 1
test/com/dmdirc/ui/messages/FormatterTest.java View File

@@ -26,7 +26,7 @@ import com.dmdirc.config.ConfigManager;
26 26
 import org.junit.Test;
27 27
 import static org.junit.Assert.*;
28 28
 
29
-public class FormatterTest extends junit.framework.TestCase {
29
+public class FormatterTest {
30 30
     
31 31
     private final TestConfigManagerOptionToggle mcm = new TestConfigManagerOptionToggle();
32 32
     

+ 1
- 4
test/com/dmdirc/ui/messages/IntelligentLinkingTest.java View File

@@ -83,8 +83,5 @@ public class IntelligentLinkingTest {
83 83
 
84 84
         return Arrays.asList(tests);
85 85
     }    
86
-    
87
-    public static junit.framework.Test suite() {
88
-        return new junit.framework.JUnit4TestAdapter(IntelligentLinkingTest.class);
89
-    }    
86
+
90 87
 }

+ 0
- 0
test/com/dmdirc/ui/messages/StyliserStylesTest.java View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save