Kaynağa Gözat

Fix stubbing.

pull/445/head
Chris Smith 8 yıl önce
ebeveyn
işleme
f8d065e4f4

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

82
 
82
 
83
     @Before
83
     @Before
84
     public void setUp() throws Exception {
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
         when(windowModel.getEventBus()).thenReturn(eventBus);
87
         when(windowModel.getEventBus()).thenReturn(eventBus);
89
         when(connection.getWindowModel()).thenReturn(windowModel);
88
         when(connection.getWindowModel()).thenReturn(windowModel);
90
         when(config.getBinder()).thenReturn(configBinder);
89
         when(config.getBinder()).thenReturn(configBinder);

Loading…
İptal
Kaydet