@Test public void testQueryDocumentWithBaseUri() throws Throwable { try { this.queryHelper.setBaseUri(null); fail("IllegalArgumentException expected with null base URI."); } catch (IllegalArgumentException e) { } this.minimalTestStates = queryDocumentWithBaseUri("testLink"); assertEquals(0, this.minimalTestStates.size()); MinimalTestServiceState minimalTestState = new MinimalTestServiceState(); minimalTestState.id = this.idValue1; minimalTestState = doPost(minimalTestState); this.minimalTestStates = queryDocumentWithBaseUri(minimalTestState.documentSelfLink); assertEquals(1, this.minimalTestStates.size()); assertEquals(minimalTestState.documentSelfLink, this.minimalTestStates.get(0).documentSelfLink); assertEquals(this.idValue1, this.minimalTestStates.get(0).id); delete(minimalTestState); this.minimalTestStates = queryDocumentWithBaseUri(minimalTestState.documentSelfLink); assertEquals(0, this.minimalTestStates.size()); }
public QueryTaskClientHelper<T> setBaseUri(URI baseUri) { assertNotNull(baseUri, "'baseUri' must not be null."); this.baseUri = baseUri; return this; }
QueryTaskClientHelper { public QueryTaskClientHelper<T> setBaseUri(URI baseUri) { assertNotNull(baseUri, "'baseUri' must not be null."); this.baseUri = baseUri; return this; } }
QueryTaskClientHelper { public QueryTaskClientHelper<T> setBaseUri(URI baseUri) { assertNotNull(baseUri, "'baseUri' must not be null."); this.baseUri = baseUri; return this; } private  QueryTaskClientHelper(Class<T> type); }
QueryTaskClientHelper { public QueryTaskClientHelper<T> setBaseUri(URI baseUri) { assertNotNull(baseUri, "'baseUri' must not be null."); this.baseUri = baseUri; return this; } private  QueryTaskClientHelper(Class<T> type); static QueryTaskClientHelper<T> create(Class<T> type); QueryTaskClientHelper<T> setDocumentLink(String documentSelfLink); QueryTaskClientHelper<T> setUpdatedDocumentSince(long documentSinceUpdateTimeMicros,
            String documentSelfLink); QueryTaskClientHelper<T> setUpdatedSince(long documentSinceUpdateTimeMicros); QueryTaskClientHelper<T> sendWith(ServiceHost serviceHost); QueryTaskClientHelper<T> sendWith(Service service); QueryTaskClientHelper<T> setQueryTask(QueryTask queryTask); QueryTaskClientHelper<T> setBaseUri(URI baseUri); QueryTaskClientHelper<T> setFactoryPath(String factoryPath); QueryTaskClientHelper<T> setResultHandler(ResultHandler<T> resultHandler); static long getDefaultQueryExpiration(); QueryElementResult<T> result(Object json, long count); static QueryElementResult<S> resultLink(
            String selfLink, long count); static QueryElementResult<S> countResult(
            long count); static QueryElementResult<S> noResult(); }
QueryTaskClientHelper { public QueryTaskClientHelper<T> setBaseUri(URI baseUri) { assertNotNull(baseUri, "'baseUri' must not be null."); this.baseUri = baseUri; return this; } private  QueryTaskClientHelper(Class<T> type); static QueryTaskClientHelper<T> create(Class<T> type); QueryTaskClientHelper<T> setDocumentLink(String documentSelfLink); QueryTaskClientHelper<T> setUpdatedDocumentSince(long documentSinceUpdateTimeMicros,
            String documentSelfLink); QueryTaskClientHelper<T> setUpdatedSince(long documentSinceUpdateTimeMicros); QueryTaskClientHelper<T> sendWith(ServiceHost serviceHost); QueryTaskClientHelper<T> sendWith(Service service); QueryTaskClientHelper<T> setQueryTask(QueryTask queryTask); QueryTaskClientHelper<T> setBaseUri(URI baseUri); QueryTaskClientHelper<T> setFactoryPath(String factoryPath); QueryTaskClientHelper<T> setResultHandler(ResultHandler<T> resultHandler); static long getDefaultQueryExpiration(); QueryElementResult<T> result(Object json, long count); static QueryElementResult<S> resultLink(
            String selfLink, long count); static QueryElementResult<S> countResult(
            long count); static QueryElementResult<S> noResult(); static final long QUERY_RETRIEVAL_RETRY_INTERVAL_MILLIS; static final long DEFAULT_EXPIRATION_TIME_IN_MICROS; static final Integer DEFAULT_QUERY_RESULT_LIMIT; }