Browse Source

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

pull/398/head
Greg Holmes 9 years ago
parent
commit
6e50410b17

+ 1
- 0
channelwho/test/com/dmdirc/addons/channelwho/ConnectionHandlerTest.java View File

@@ -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…
Cancel
Save