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