@Test public void filterRequest_AnyRequestBuilder_ShouldApplyAllRegisteredFilters() { RequestFilterContext request = mock(RequestFilterContext.class); engine.filterRequest(request); verify(requestFilter).filter(request); }
public void filterRequest(RequestFilterContext request) { for (RequestFilter filter : filterManager.getRequestFilters()) { filter.filter(request); } }
FilterEngine { public void filterRequest(RequestFilterContext request) { for (RequestFilter filter : filterManager.getRequestFilters()) { filter.filter(request); } } }
FilterEngine { public void filterRequest(RequestFilterContext request) { for (RequestFilter filter : filterManager.getRequestFilters()) { filter.filter(request); } } FilterEngine(FilterManagerImpl filterManager); }
FilterEngine { public void filterRequest(RequestFilterContext request) { for (RequestFilter filter : filterManager.getRequestFilters()) { filter.filter(request); } } FilterEngine(FilterManagerImpl filterManager); void filterRequest(RequestFilterContext request); void filterResponse(Request request, ResponseFilterContext response); }
FilterEngine { public void filterRequest(RequestFilterContext request) { for (RequestFilter filter : filterManager.getRequestFilters()) { filter.filter(request); } } FilterEngine(FilterManagerImpl filterManager); void filterRequest(RequestFilterContext request); void filterResponse(Request request, ResponseFilterContext response);  }