|
@@ -22,6 +22,7 @@
|
22
|
22
|
|
23
|
23
|
package com.dmdirc.harness.parser;
|
24
|
24
|
|
|
25
|
+import com.dmdirc.parser.common.ChildImplementations;
|
25
|
26
|
import com.dmdirc.parser.common.MyInfo;
|
26
|
27
|
import com.dmdirc.parser.common.QueuePriority;
|
27
|
28
|
import com.dmdirc.parser.interfaces.Parser;
|
|
@@ -32,6 +33,11 @@ import java.util.ArrayList;
|
32
|
33
|
import java.util.List;
|
33
|
34
|
import java.util.Timer;
|
34
|
35
|
|
|
36
|
+@ChildImplementations({
|
|
37
|
+ IRCChannelClientInfo.class,
|
|
38
|
+ IRCChannelInfo.class,
|
|
39
|
+ IRCClientInfo.class
|
|
40
|
+})
|
35
|
41
|
public class TestParser extends IRCParser implements Parser {
|
36
|
42
|
|
37
|
43
|
public final List<String> sentLines = new ArrayList<String>();
|
|
@@ -43,11 +49,15 @@ public class TestParser extends IRCParser implements Parser {
|
43
|
49
|
public TestParser() {
|
44
|
50
|
super(buildURI());
|
45
|
51
|
currentSocketState = SocketState.OPEN;
|
|
52
|
+ setPingTimerFraction(10);
|
|
53
|
+ setPingTimerInterval(60000);
|
46
|
54
|
}
|
47
|
55
|
|
48
|
56
|
public TestParser(MyInfo myDetails, URI address) {
|
49
|
57
|
super(myDetails, address);
|
50
|
58
|
currentSocketState = SocketState.OPEN;
|
|
59
|
+ setPingTimerFraction(10);
|
|
60
|
+ setPingTimerInterval(60000);
|
51
|
61
|
}
|
52
|
62
|
|
53
|
63
|
private static URI buildURI() {
|