Skip to content

Commit a08e7bb

Browse files
committed
Change poms and code to match with master udpates
1 parent 2271ab9 commit a08e7bb

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

gcloud-java-bigquery/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<parent>
1212
<groupId>com.google.gcloud</groupId>
1313
<artifactId>gcloud-java-pom</artifactId>
14-
<version>0.0.11-SNAPSHOT</version>
14+
<version>0.1.1-SNAPSHOT</version>
1515
</parent>
1616
<properties>
1717
<site.installationModule>gcloud-java-bigquery</site.installationModule>

gcloud-java-bigquery/src/test/java/com/google/gcloud/bigquery/BigQueryImplTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ public void setUp() {
260260
EasyMock.replay(rpcFactoryMock);
261261
options = BigQueryOptions.builder()
262262
.projectId(PROJECT)
263-
.authCredentials(AuthCredentials.noCredentials())
264263
.serviceRpcFactory(rpcFactoryMock)
265264
.build();
266265
}
@@ -1011,7 +1010,7 @@ public void testRetryableException() {
10111010
.andThrow(new BigQueryException(500, "InternalError", true))
10121011
.andReturn(DATASET_INFO_WITH_PROJECT.toPb());
10131012
EasyMock.replay(bigqueryRpcMock);
1014-
bigquery = options.toBuilder().retryParams(RetryParams.getDefaultInstance()).build().service();
1013+
bigquery = options.toBuilder().retryParams(RetryParams.defaultInstance()).build().service();
10151014
DatasetInfo dataset = bigquery.getDataset(DATASET);
10161015
assertEquals(DATASET_INFO_WITH_PROJECT, dataset);
10171016
}
@@ -1022,7 +1021,7 @@ public void testNonRetryableException() {
10221021
EasyMock.expect(bigqueryRpcMock.getDataset(DATASET, EMPTY_RPC_OPTIONS))
10231022
.andThrow(new BigQueryException(501, exceptionMessage, false));
10241023
EasyMock.replay(bigqueryRpcMock);
1025-
bigquery = options.toBuilder().retryParams(RetryParams.getDefaultInstance()).build().service();
1024+
bigquery = options.toBuilder().retryParams(RetryParams.defaultInstance()).build().service();
10261025
thrown.expect(BigQueryException.class);
10271026
thrown.expectMessage(exceptionMessage);
10281027
bigquery.getDataset(DatasetId.of(DATASET));
@@ -1034,7 +1033,7 @@ public void testRuntimeException() {
10341033
EasyMock.expect(bigqueryRpcMock.getDataset(DATASET, EMPTY_RPC_OPTIONS))
10351034
.andThrow(new RuntimeException(exceptionMessage));
10361035
EasyMock.replay(bigqueryRpcMock);
1037-
bigquery = options.toBuilder().retryParams(RetryParams.getDefaultInstance()).build().service();
1036+
bigquery = options.toBuilder().retryParams(RetryParams.defaultInstance()).build().service();
10381037
thrown.expect(BigQueryException.class);
10391038
thrown.expectMessage(exceptionMessage);
10401039
bigquery.getDataset(DATASET);

gcloud-java-bigquery/src/test/java/com/google/gcloud/bigquery/SerializationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ public void testServiceOptions() throws Exception {
218218

219219
options = options.toBuilder()
220220
.projectId("p2")
221-
.retryParams(RetryParams.getDefaultInstance())
222-
.authCredentials(AuthCredentials.noCredentials())
221+
.retryParams(RetryParams.defaultInstance())
222+
.authCredentials(null)
223223
.build();
224224
serializedCopy = serializeAndDeserialize(options);
225225
assertEquals(options, serializedCopy);

0 commit comments

Comments
 (0)