|
@@ -23,7 +23,6 @@
|
23
|
23
|
package com.dmdirc.addons.identd;
|
24
|
24
|
|
25
|
25
|
import com.dmdirc.DMDircMBassador;
|
26
|
|
-import com.dmdirc.Server;
|
27
|
26
|
import com.dmdirc.interfaces.Connection;
|
28
|
27
|
import com.dmdirc.interfaces.ConnectionManager;
|
29
|
28
|
import com.dmdirc.interfaces.config.AggregateConfigProvider;
|
|
@@ -47,7 +46,7 @@ public class IdentClientTest {
|
47
|
46
|
|
48
|
47
|
@Mock private AggregateConfigProvider acp;
|
49
|
48
|
@Mock private ConnectionManager sm;
|
50
|
|
- @Mock private Server server;
|
|
49
|
+ @Mock private Connection connection;
|
51
|
50
|
@Mock private IRCParser parser;
|
52
|
51
|
@Mock private IRCClientInfo client;
|
53
|
52
|
@Mock private AggregateConfigProvider config;
|
|
@@ -55,10 +54,10 @@ public class IdentClientTest {
|
55
|
54
|
|
56
|
55
|
protected IdentClient getClient() {
|
57
|
56
|
final List<Connection> servers = new ArrayList<>();
|
58
|
|
- servers.add(server);
|
|
57
|
+ servers.add(connection);
|
59
|
58
|
|
60
|
59
|
when(sm.getConnections()).thenReturn(servers);
|
61
|
|
- when(server.getParser()).thenReturn(parser);
|
|
60
|
+ when(connection.getParser()).thenReturn(parser);
|
62
|
61
|
when(parser.getLocalPort()).thenReturn(60);
|
63
|
62
|
when(parser.getLocalClient()).thenReturn(client);
|
64
|
63
|
when(client.getNickname()).thenReturn("nickname");
|