@Test public void testQueryMoreBadQueryLocator() throws IOException { try { client.queryMore(new RestQueryLocator("/services/data/v21.0/query/wrong")); fail(); } catch (ApiException e) { assertEquals( "https: e.getUrl()); assertEquals("Bad Request", e.getHttpReason()); assertJsonStringEquals( "[{\"message\":\"invalid query locator\",\"errorCode\":\"INVALID_QUERY_LOCATOR\"}]", e.getHttpResponseBody()); assertEquals(400, e.getHttpResponseCode()); List<ApiError> errors = e.getErrors(); assertEquals(1, errors.size()); ApiError error = errors.get(0); assertEquals("INVALID_QUERY_LOCATOR", error.getErrorCode()); assertEquals("invalid query locator", error.getMessage()); assertEquals(0, error.getFields().size()); } }
@CheckForNull String queryMore(RestQueryLocator queryLocator) throws IOException { return executeGetForUri(getUriForPath(queryLocator.getContents())); }
HttpApiClient { @CheckForNull String queryMore(RestQueryLocator queryLocator) throws IOException { return executeGetForUri(getUriForPath(queryLocator.getContents())); } }
HttpApiClient { @CheckForNull String queryMore(RestQueryLocator queryLocator) throws IOException { return executeGetForUri(getUriForPath(queryLocator.getContents())); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client); }
HttpApiClient { @CheckForNull String queryMore(RestQueryLocator queryLocator) throws IOException { return executeGetForUri(getUriForPath(queryLocator.getContents())); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);  }
HttpApiClient { @CheckForNull String queryMore(RestQueryLocator queryLocator) throws IOException { return executeGetForUri(getUriForPath(queryLocator.getContents())); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);   }