use of com.ning.http.client.SignatureCalculator in project riposte by Nike-Inc.
the class AsyncHttpClientHelperTest method beforeMethod.
@Before
public void beforeMethod() {
helperSpy = spy(new AsyncHttpClientHelper());
channelMock = mock(Channel.class);
ctxMock = mock(ChannelHandlerContext.class);
stateAttributeMock = mock(Attribute.class);
state = new HttpProcessingState();
eventLoopMock = mock(EventLoop.class);
signatureCalculator = mock(SignatureCalculator.class);
doReturn(channelMock).when(ctxMock).channel();
doReturn(stateAttributeMock).when(channelMock).attr(ChannelAttributes.HTTP_PROCESSING_STATE_ATTRIBUTE_KEY);
doReturn(state).when(stateAttributeMock).get();
doReturn(eventLoopMock).when(channelMock).eventLoop();
handlerWithTracingAndMdcDummyExample = new AsyncCompletionHandlerWithTracingAndMdcSupport<>(null, null, false, null, null, null, null, null);
resetTracingAndMdc();
}
Aggregations