@Test public void testExecuteSuccessAtFirstAttempt() throws Exception { when(mockResponse.getStatusLine()).thenReturn(HTTP_200_STATUSLINE); when(httpClient.execute(eq(HTTP_HOST), eq(request), eq(httpClientContext))).thenReturn(mockResponse); final CloseableHttpResponse response = client.execute(request); assertThat(response, notNullValue()); assertThat(response, sameInstance(mockResponse)); verifyPrivate(client).invoke("execute", request, 0); }
@Override public CloseableHttpResponse execute(final HttpUriRequest request) throws CosmicRESTException { return execute(request, 0); }
NiciraRestClient extends BasicRestClient { @Override public CloseableHttpResponse execute(final HttpUriRequest request) throws CosmicRESTException { return execute(request, 0); } }
NiciraRestClient extends BasicRestClient { @Override public CloseableHttpResponse execute(final HttpUriRequest request) throws CosmicRESTException { return execute(request, 0); } private  NiciraRestClient(final Builder builder); }
NiciraRestClient extends BasicRestClient { @Override public CloseableHttpResponse execute(final HttpUriRequest request) throws CosmicRESTException { return execute(request, 0); } private  NiciraRestClient(final Builder builder); static Builder create(); @Override CloseableHttpResponse execute(final HttpUriRequest request); }
NiciraRestClient extends BasicRestClient { @Override public CloseableHttpResponse execute(final HttpUriRequest request) throws CosmicRESTException { return execute(request, 0); } private  NiciraRestClient(final Builder builder); static Builder create(); @Override CloseableHttpResponse execute(final HttpUriRequest request);  }