use of com.github.dreamhead.moco.SocketServer in project moco by dreamhead.
the class ActualSocketServerTest method should_merge_socket_servers_with_second_port.
@Test
public void should_merge_socket_servers_with_second_port() throws Exception {
SocketServer server = socketServer();
SocketServer secondServer = socketServer(12307);
final SocketServer newServer = ((ActualSocketServer) server).mergeServer((ActualSocketServer) secondServer);
running(newServer, new Runnable() {
@Override
public void run() throws Exception {
assertThat(newServer.port(), is(12307));
}
});
}
Aggregations