@Test public void testQuery() throws IOException { String actualJsonStr = reformatJson( client.query("SELECT Id,Name,Description FROM Product2 WHERE Id = '01t50000001L5cT'")); assertJsonStringEquals(ResourceUtil.readResource("/apiResponses/query.json"), actualJsonStr); }
@CheckForNull String query(String soql) throws IOException { return executeGet("/query", new BasicNameValuePair("q", soql)); }
HttpApiClient { @CheckForNull String query(String soql) throws IOException { return executeGet("/query", new BasicNameValuePair("q", soql)); } }
HttpApiClient { @CheckForNull String query(String soql) throws IOException { return executeGet("/query", new BasicNameValuePair("q", soql)); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client); }
HttpApiClient { @CheckForNull String query(String soql) throws IOException { return executeGet("/query", new BasicNameValuePair("q", soql)); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);  }
HttpApiClient { @CheckForNull String query(String soql) throws IOException { return executeGet("/query", new BasicNameValuePair("q", soql)); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);   }