Kaynağa Gözat

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

pull/398/head
Greg Holmes 9 yıl önce
ebeveyn
işleme
6e50410b17

+ 1
- 0
channelwho/test/com/dmdirc/addons/channelwho/ConnectionHandlerTest.java Dosyayı Görüntüle

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

Loading…
İptal
Kaydet