@Test public void filterResponse_AnyResponseBuilder_ShouldApplyAllRegisteredFilters() { Request request = mock(Request.class); ResponseFilterContext response = mock(ResponseFilterContext.class); engine.filterResponse(request, response); verify(responseFilter).filter(request, response); }
public void filterResponse(Request request, ResponseFilterContext response) { for (ResponseFilter filter : filterManager.getResponseFilters()) { filter.filter(request, response); } }
FilterEngine { public void filterResponse(Request request, ResponseFilterContext response) { for (ResponseFilter filter : filterManager.getResponseFilters()) { filter.filter(request, response); } } }
FilterEngine { public void filterResponse(Request request, ResponseFilterContext response) { for (ResponseFilter filter : filterManager.getResponseFilters()) { filter.filter(request, response); } } FilterEngine(FilterManagerImpl filterManager); }
FilterEngine { public void filterResponse(Request request, ResponseFilterContext response) { for (ResponseFilter filter : filterManager.getResponseFilters()) { filter.filter(request, response); } } FilterEngine(FilterManagerImpl filterManager); void filterRequest(RequestFilterContext request); void filterResponse(Request request, ResponseFilterContext response); }
FilterEngine { public void filterResponse(Request request, ResponseFilterContext response) { for (ResponseFilter filter : filterManager.getResponseFilters()) { filter.filter(request, response); } } FilterEngine(FilterManagerImpl filterManager); void filterRequest(RequestFilterContext request); void filterResponse(Request request, ResponseFilterContext response);  }