@Test public void testIntercept_nullResponse() throws IOException { interceptor.interceptResponse(null); verify(reportServiceLogger, never()).logRequest(any(HttpRequest.class), anyInt(), anyString()); }
@Override public void interceptResponse(HttpResponse response) throws IOException { if (response == null) { return; } reportServiceLogger.logRequest( response.getRequest(), response.getStatusCode(), response.getStatusMessage()); }
ReportResponseInterceptor implements HttpResponseInterceptor { @Override public void interceptResponse(HttpResponse response) throws IOException { if (response == null) { return; } reportServiceLogger.logRequest( response.getRequest(), response.getStatusCode(), response.getStatusMessage()); } }
ReportResponseInterceptor implements HttpResponseInterceptor { @Override public void interceptResponse(HttpResponse response) throws IOException { if (response == null) { return; } reportServiceLogger.logRequest( response.getRequest(), response.getStatusCode(), response.getStatusMessage()); } @Inject  ReportResponseInterceptor(ReportServiceLogger reportServiceLogger); }
ReportResponseInterceptor implements HttpResponseInterceptor { @Override public void interceptResponse(HttpResponse response) throws IOException { if (response == null) { return; } reportServiceLogger.logRequest( response.getRequest(), response.getStatusCode(), response.getStatusMessage()); } @Inject  ReportResponseInterceptor(ReportServiceLogger reportServiceLogger); @Override void interceptResponse(HttpResponse response); }
ReportResponseInterceptor implements HttpResponseInterceptor { @Override public void interceptResponse(HttpResponse response) throws IOException { if (response == null) { return; } reportServiceLogger.logRequest( response.getRequest(), response.getStatusCode(), response.getStatusMessage()); } @Inject  ReportResponseInterceptor(ReportServiceLogger reportServiceLogger); @Override void interceptResponse(HttpResponse response);  }