Browse Source

Fix redirect command test

pull/253/head
Chris Smith 9 years ago
parent
commit
75a5d517e2
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      redirect/test/com/dmdirc/addons/redirect/RedirectCommandTest.java

+ 3
- 0
redirect/test/com/dmdirc/addons/redirect/RedirectCommandTest.java View File

@@ -36,6 +36,7 @@ import com.dmdirc.interfaces.ui.InputWindow;
36 36
 import com.dmdirc.ui.WindowManager;
37 37
 import com.dmdirc.ui.input.TabCompleter;
38 38
 import com.dmdirc.ui.input.TabCompleterUtils;
39
+import com.dmdirc.ui.messages.BackBuffer;
39 40
 import com.dmdirc.ui.messages.BackBufferFactory;
40 41
 import com.dmdirc.ui.messages.sink.MessageSinkManager;
41 42
 import com.dmdirc.util.URLBuilder;
@@ -70,6 +71,7 @@ public class RedirectCommandTest {
70 71
     @Mock private URLBuilder urlBuilder;
71 72
     @Mock private DMDircMBassador eventBus;
72 73
     @Mock private BackBufferFactory backBufferFactory;
74
+    @Mock private BackBuffer backBuffer;
73 75
     @Mock private TabCompleterUtils tabCompleterUtils;
74 76
 
75 77
     @Before
@@ -81,6 +83,7 @@ public class RedirectCommandTest {
81 83
         when(target.getConfigManager()).thenReturn(configProvider);
82 84
         when(target.getCommandParser()).thenReturn(commandParser);
83 85
         when(target.getTabCompleter()).thenReturn(tabCompleter);
86
+        when(backBufferFactory.getBackBuffer(any())).thenReturn(backBuffer);
84 87
         when(configProvider.hasOptionString("formatter", "commandOutput")).thenReturn(true);
85 88
         when(configProvider.getOption("formatter", "commandOutput")).thenReturn("%1$s");
86 89
         when(configProvider.getBinder()).thenReturn(configBinder);

Loading…
Cancel
Save