@@ -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 );
0 commit comments