use of com.linkedin.restli.internal.server.filter.RestLiFilterChain in project rest.li by linkedin.
the class TestRestLiCallback method setUp.
@BeforeTest
protected void setUp() throws Exception {
MockitoAnnotations.initMocks(this);
_filterResponseContextFactory = new RestLiFilterResponseContextFactory<Object>(_restRequest, _routingResult, _responseHandler);
_filterChainCallback = new FilterChainCallbackImpl(_routingResult, _methodInvoker, _adapter, _requestExecutionReportBuilder, _requestAttachmentReader, _responseHandler, _callback);
_zeroFilterChain = new RestLiFilterChain(_filterChainCallback);
_oneFilterChain = new RestLiFilterChain(Arrays.asList(_filter), _filterChainCallback);
_twoFilterChain = new RestLiFilterChain(Arrays.asList(_filter, _filter), _filterChainCallback);
_noFilterRestLiCallback = new RestLiCallback<Object>(_filterRequestContext, _filterResponseContextFactory, _zeroFilterChain);
_oneFilterRestLiCallback = new RestLiCallback<Object>(_filterRequestContext, _filterResponseContextFactory, _oneFilterChain);
_twoFilterRestLiCallback = new RestLiCallback<Object>(_filterRequestContext, _filterResponseContextFactory, _twoFilterChain);
}
Aggregations