use of org.jacoco.agent.rt.internal.ExceptionRecorder in project jacoco by jacoco.
the class TcpClientOutputTest method setup.
@Before
public void setup() throws Exception {
logger = new ExceptionRecorder();
final MockSocketConnection con = new MockSocketConnection();
localSocket = con.getSocketA();
remoteSocket = con.getSocketB();
remoteWriter = new RemoteControlWriter(remoteSocket.getOutputStream());
controller = new TcpClientOutput(logger) {
@Override
protected Socket createSocket(AgentOptions options) throws IOException {
return localSocket;
}
};
data = new RuntimeData();
controller.startup(new AgentOptions(), data);
remoteReader = new RemoteControlReader(remoteSocket.getInputStream());
}
use of org.jacoco.agent.rt.internal.ExceptionRecorder in project jacoco by jacoco.
the class TcpServerOutputTest method setup.
@Before
public void setup() throws Exception {
options = new AgentOptions();
logger = new ExceptionRecorder();
serverSocket = new MockServerSocket();
controller = new TcpServerOutput(logger) {
@Override
protected ServerSocket createServerSocket(AgentOptions options) throws IOException {
return serverSocket;
}
};
data = new RuntimeData();
controller.startup(options, data);
}
Aggregations