Skip to content

Commit c0c0da8

Browse files
committed
update tests to use RESOURCE_PROJECT_PREFIX defined in HttpBigQueryRpc
1 parent cbf47f1 commit c0c0da8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class HttpBigQueryRpc implements BigQueryRpc {
9090
private static final String BASE_RESUMABLE_URI = "upload/bigquery/v2/projects/";
9191
static final String HTTP_TRACING_DEV_GATE_PROPERTY =
9292
"com.google.cloud.bigquery.http.tracing.dev.enabled";
93-
private static final String RESOURCE_PROJECT_PREFIX = "//bigquery.googleapis.com/projects/";
93+
static final String RESOURCE_PROJECT_PREFIX = "//bigquery.googleapis.com/projects/";
9494
// see:
9595
// https://cloud.google.com/bigquery/loading-data-post-request#resume-upload
9696
private static final int HTTP_RESUME_INCOMPLETE = 308;

java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package com.google.cloud.bigquery.spi.v2;
1717

18+
import static com.google.cloud.bigquery.spi.v2.HttpBigQueryRpc.RESOURCE_PROJECT_PREFIX;
1819
import static com.google.common.truth.Truth.assertThat;
1920
import static org.junit.jupiter.api.Assertions.assertEquals;
2021
import static org.junit.jupiter.api.Assertions.assertNotNull;
@@ -78,7 +79,6 @@ public class HttpBigQueryRpcTest {
7879
private static final String JOB_ID = "test-job";
7980
private static final String LOCATION = "test-location";
8081

81-
private static final String RESOURCE_PROJECT_PREFIX = "//bigquery.googleapis.com/projects/";
8282
private InMemorySpanExporter spanExporter;
8383
private MockLowLevelHttpResponse mockResponse;
8484
private String lastRequestMethod;

0 commit comments

Comments
 (0)