use of com.navercorp.pinpoint.bootstrap.plugin.request.ServerRequestWrapperAdaptor in project pinpoint by naver.
the class ServerRequestRecorderFactoryTest method record.
@Test
public void record() throws Exception {
RequestAdaptor<ServerRequestWrapper> requestAdaptor = new ServerRequestWrapperAdaptor();
final ServerRequestRecorder<ServerRequestWrapper> recorder = new ServerRequestRecorder<>(requestAdaptor);
// SpanRecorder
SpanRecorder spanRecorder = mock(SpanRecorder.class);
recorder.record(spanRecorder, new MockServerRequestWrapper());
verify(spanRecorder).recordRpcName(RPC_NAME);
verify(spanRecorder).recordEndPoint(END_POINT);
verify(spanRecorder).recordRemoteAddress(REMOTE_ADDRESS);
verify(spanRecorder).recordAcceptorHost(GET_HEADER);
}
Aggregations