Skip to content

Commit

Permalink
Change poms and code to match with master udpates
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Dec 18, 2015
1 parent 2271ab9 commit a08e7bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gcloud-java-bigquery/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>com.google.gcloud</groupId>
<artifactId>gcloud-java-pom</artifactId>
<version>0.0.11-SNAPSHOT</version>
<version>0.1.1-SNAPSHOT</version>
</parent>
<properties>
<site.installationModule>gcloud-java-bigquery</site.installationModule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ public void setUp() {
EasyMock.replay(rpcFactoryMock);
options = BigQueryOptions.builder()
.projectId(PROJECT)
.authCredentials(AuthCredentials.noCredentials())
.serviceRpcFactory(rpcFactoryMock)
.build();
}
Expand Down Expand Up @@ -1011,7 +1010,7 @@ public void testRetryableException() {
.andThrow(new BigQueryException(500, "InternalError", true))
.andReturn(DATASET_INFO_WITH_PROJECT.toPb());
EasyMock.replay(bigqueryRpcMock);
bigquery = options.toBuilder().retryParams(RetryParams.getDefaultInstance()).build().service();
bigquery = options.toBuilder().retryParams(RetryParams.defaultInstance()).build().service();
DatasetInfo dataset = bigquery.getDataset(DATASET);
assertEquals(DATASET_INFO_WITH_PROJECT, dataset);
}
Expand All @@ -1022,7 +1021,7 @@ public void testNonRetryableException() {
EasyMock.expect(bigqueryRpcMock.getDataset(DATASET, EMPTY_RPC_OPTIONS))
.andThrow(new BigQueryException(501, exceptionMessage, false));
EasyMock.replay(bigqueryRpcMock);
bigquery = options.toBuilder().retryParams(RetryParams.getDefaultInstance()).build().service();
bigquery = options.toBuilder().retryParams(RetryParams.defaultInstance()).build().service();
thrown.expect(BigQueryException.class);
thrown.expectMessage(exceptionMessage);
bigquery.getDataset(DatasetId.of(DATASET));
Expand All @@ -1034,7 +1033,7 @@ public void testRuntimeException() {
EasyMock.expect(bigqueryRpcMock.getDataset(DATASET, EMPTY_RPC_OPTIONS))
.andThrow(new RuntimeException(exceptionMessage));
EasyMock.replay(bigqueryRpcMock);
bigquery = options.toBuilder().retryParams(RetryParams.getDefaultInstance()).build().service();
bigquery = options.toBuilder().retryParams(RetryParams.defaultInstance()).build().service();
thrown.expect(BigQueryException.class);
thrown.expectMessage(exceptionMessage);
bigquery.getDataset(DATASET);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ public void testServiceOptions() throws Exception {

options = options.toBuilder()
.projectId("p2")
.retryParams(RetryParams.getDefaultInstance())
.authCredentials(AuthCredentials.noCredentials())
.retryParams(RetryParams.defaultInstance())
.authCredentials(null)
.build();
serializedCopy = serializeAndDeserialize(options);
assertEquals(options, serializedCopy);
Expand Down

0 comments on commit a08e7bb

Please sign in to comment.