소스 검색

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,6 +30,8 @@ import com.dmdirc.interfaces.ConnectionManager;
30 30
 
31 31
 import com.google.common.collect.Lists;
32 32
 
33
+import java.net.URI;
34
+
33 35
 import org.junit.Before;
34 36
 import org.junit.Test;
35 37
 import org.junit.runner.RunWith;
@@ -76,7 +78,8 @@ public class ChannelWhoManagerTest {
76 78
 
77 79
     @Test
78 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 83
         verify(connectionHandlerFactory).get(connection);
81 84
     }
82 85
 

+ 0
- 16
redirect/src/com/dmdirc/addons/redirect/FakeWriteableFrameContainer.java 파일 보기

@@ -59,12 +59,6 @@ public class FakeWriteableFrameContainer extends FrameContainer {
59 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 62
     @Override
69 63
     public void sendLine(final String line) {
70 64
         target.sendLine(line);
@@ -80,16 +74,6 @@ public class FakeWriteableFrameContainer extends FrameContainer {
80 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 77
     @Override
94 78
     public void addLine(final String line, final Date timestamp) {
95 79
         addLine(line);

Loading…
취소
저장