Browse Source

Fix stubbing.

pull/445/head
Chris Smith 8 years ago
parent
commit
f8d065e4f4

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

@@ -82,9 +82,8 @@ public class ConnectionHandlerTest {
82 82
 
83 83
     @Before
84 84
     public void setUp() throws Exception {
85
-        doReturn(scheduledFuture).when(
86
-                scheduledExecutorService.scheduleAtFixedRate(
87
-                        any(Runnable.class), anyLong(), anyLong(), any()));
85
+        doReturn(scheduledFuture).when(scheduledExecutorService)
86
+                .scheduleAtFixedRate(any(Runnable.class), anyLong(), anyLong(), any());
88 87
         when(windowModel.getEventBus()).thenReturn(eventBus);
89 88
         when(connection.getWindowModel()).thenReturn(windowModel);
90 89
         when(config.getBinder()).thenReturn(configBinder);

Loading…
Cancel
Save