Browse Source

Fix a couple of tests.

pull/467/head
Chris Smith 8 years ago
parent
commit
a69673e93c

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

@@ -102,6 +102,9 @@ public class ConnectionHandlerTest {
102 102
         instance = new ConnectionHandler(config, scheduledExecutorService, connectionManager,
103 103
                 "domain", connection);
104 104
         instance.handleWhoInterval(5);
105
+
106
+        when(serverNumericEvent.getConnection()).thenReturn(connection);
107
+        when(channelUserAwayEvent.getChannel()).thenReturn(groupChat);
105 108
     }
106 109
 
107 110
     @Test

+ 3
- 0
jpq/test/com/dmdirc/addons/jpq/GroupChatHandlerTest.java View File

@@ -62,6 +62,9 @@ public class GroupChatHandlerTest {
62 62
         when(windowModel.getConfigManager()).thenReturn(configProvider);
63 63
         when(configProvider.getBinder()).thenReturn(configBinder);
64 64
         when(configBinder.withDefaultDomain("domain")).thenReturn(configBinder);
65
+        when(channelJoinEvent.getChannel()).thenReturn(groupChat);
66
+        when(channelPartEvent.getChannel()).thenReturn(groupChat);
67
+        when(channelQuitEvent.getChannel()).thenReturn(groupChat);
65 68
         instance = new GroupChatHandler("domain", groupChat);
66 69
     }
67 70
 

Loading…
Cancel
Save