瀏覽代碼

Fix the channelwho unit test (should be improved really.)

pull/398/head
Greg Holmes 9 年之前
父節點
當前提交
6e50410b17
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      channelwho/test/com/dmdirc/addons/channelwho/ConnectionHandlerTest.java

+ 1
- 0
channelwho/test/com/dmdirc/addons/channelwho/ConnectionHandlerTest.java 查看文件

@@ -96,6 +96,7 @@ public class ConnectionHandlerTest {
96 96
         when(groupChatUser.getNickname()).thenReturn("nickname");
97 97
         when(channelUserAwayEvent.getUser()).thenReturn(groupChatUser);
98 98
         when(channelUserAwayEvent.getChannel()).thenReturn(groupChat);
99
+        when(groupChat.getEventBus()).thenReturn(eventBus);
99 100
         when(groupChatUser.getUser()).thenReturn(user);
100 101
         instance = new ConnectionHandler(config, scheduledExecutorService, connectionManager,
101 102
                 "domain", connection);

Loading…
取消
儲存