瀏覽代碼

Merge pull request #441 from csmith/core-updates

Support for core changes.
pull/442/head
Greg Holmes 8 年之前
父節點
當前提交
8b44f2661a

+ 4
- 1
channelwho/test/com/dmdirc/addons/channelwho/ChannelWhoManagerTest.java 查看文件

30
 
30
 
31
 import com.google.common.collect.Lists;
31
 import com.google.common.collect.Lists;
32
 
32
 
33
+import java.net.URI;
34
+
33
 import org.junit.Before;
35
 import org.junit.Before;
34
 import org.junit.Test;
36
 import org.junit.Test;
35
 import org.junit.runner.RunWith;
37
 import org.junit.runner.RunWith;
76
 
78
 
77
     @Test
79
     @Test
78
     public void testServerConnectionEvent() throws Exception {
80
     public void testServerConnectionEvent() throws Exception {
79
-        instance.handleServerConnectingEvent(new ServerConnectingEvent(connection2));
81
+        instance.handleServerConnectingEvent(
82
+                new ServerConnectingEvent(connection2, URI.create("irc://foo.bar")));
80
         verify(connectionHandlerFactory).get(connection);
83
         verify(connectionHandlerFactory).get(connection);
81
     }
84
     }
82
 
85
 

+ 0
- 16
redirect/src/com/dmdirc/addons/redirect/FakeWriteableFrameContainer.java 查看文件

59
         setCommandParser(target.getCommandParser());
59
         setCommandParser(target.getCommandParser());
60
     }
60
     }
61
 
61
 
62
-    @Override
63
-    @Deprecated
64
-    public void addLine(final String line, final boolean timestamp) {
65
-        addLine(line);
66
-    }
67
-
68
     @Override
62
     @Override
69
     public void sendLine(final String line) {
63
     public void sendLine(final String line) {
70
         target.sendLine(line);
64
         target.sendLine(line);
80
         sendLine(Formatter.formatMessage(getConfigManager(), type, args));
74
         sendLine(Formatter.formatMessage(getConfigManager(), type, args));
81
     }
75
     }
82
 
76
 
83
-    @Override
84
-    public void addLine(final StringBuffer type, final Date timestamp, final Object... args) {
85
-        addLine(type, args);
86
-    }
87
-
88
-    @Override
89
-    public void addLine(final StringBuffer type, final Object... args) {
90
-        addLine(type.toString(), args);
91
-    }
92
-
93
     @Override
77
     @Override
94
     public void addLine(final String line, final Date timestamp) {
78
     public void addLine(final String line, final Date timestamp) {
95
         addLine(line);
79
         addLine(line);

Loading…
取消
儲存