|
@@ -24,6 +24,7 @@ package com.dmdirc;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.commandparser.CommandType;
|
26
|
26
|
import com.dmdirc.commandparser.parsers.CommandParser;
|
|
27
|
+import com.dmdirc.config.ConfigBinder;
|
27
|
28
|
import com.dmdirc.config.profiles.Profile;
|
28
|
29
|
import com.dmdirc.interfaces.User;
|
29
|
30
|
import com.dmdirc.interfaces.config.AggregateConfigProvider;
|
|
@@ -56,6 +57,7 @@ public class ServerTest {
|
56
|
57
|
@Mock private ServerManager serverManager;
|
57
|
58
|
@Mock private Profile profile;
|
58
|
59
|
@Mock private AggregateConfigProvider configManager;
|
|
60
|
+ @Mock private ConfigBinder configBinder;
|
59
|
61
|
@Mock private ConfigProvider userConfig;
|
60
|
62
|
@Mock private ConfigProviderMigrator configMigrator;
|
61
|
63
|
@Mock private CommandParser commandParser;
|
|
@@ -81,6 +83,7 @@ public class ServerTest {
|
81
|
83
|
public void setUp() throws Exception {
|
82
|
84
|
MockitoAnnotations.initMocks(this);
|
83
|
85
|
when(configManager.getOptionInt(anyString(), anyString())).thenReturn(Integer.MAX_VALUE);
|
|
86
|
+ when(configManager.getBinder()).thenReturn(configBinder);
|
84
|
87
|
when(configMigrator.getConfigProvider()).thenReturn(configManager);
|
85
|
88
|
when(tabCompleterFactory.getTabCompleter(eq(configManager),
|
86
|
89
|
Matchers.<CommandType>anyVararg())).thenReturn(tabCompleter);
|