Browse Source

Fix broken unit test

tags/0.6.3m2a1
Chris Smith 15 years ago
parent
commit
3e65963c5f
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      test/com/dmdirc/actions/ActionConditionTest.java

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

@@ -24,7 +24,6 @@ package com.dmdirc.actions;
24 24
 
25 25
 import com.dmdirc.config.IdentityManager;
26 26
 
27
-import org.junit.Before;
28 27
 import org.junit.BeforeClass;
29 28
 import org.junit.Test;
30 29
 import static org.junit.Assert.*;
@@ -58,9 +57,9 @@ public class ActionConditionTest {
58 57
 
59 58
     @Test
60 59
     public void testTest1() {
61
-        final ActionCondition ac = new ActionCondition(0, CoreActionComponent.STRING_STRING,
60
+        final ActionCondition ac = new ActionCondition(1, CoreActionComponent.STRING_STRING,
62 61
             CoreActionComparison.STRING_STARTSWITH, "foo");
63
-        assertTrue(ac.test(new ActionSubstitutor(CoreActionType.CLIENT_CLOSED), "foo bar"));
62
+        assertTrue(ac.test(new ActionSubstitutor(CoreActionType.CLIENT_USER_INPUT), null, "foo bar"));
64 63
     }
65 64
 
66 65
     @Test

Loading…
Cancel
Save