BigQueryFactory { public Bigquery getBigQuery(Configuration config) throws GeneralSecurityException, IOException { logger.atInfo().log("Creating BigQuery from default credential."); Credential credential = createBigQueryCredential(config); return getBigQueryFromCredential(config, credential, BQC_ID); }  Credential createBigQueryCredential(Configuration config); BigQueryHelper getBigQueryHelper(Configuration config); Bigquery getBigQuery(Configuration config); Bigquery getBigQueryFromCredential(
      Configuration config, Credential credential, String appName); static final List<String> BIGQUERY_OAUTH_SCOPES; static final String BIGQUERY_SERVICE_ACCOUNT; static final String BIGQUERY_PRIVATE_KEY_FILE; static final String PROPERTIES_FILE; static final String VERSION_PROPERTY; static final String UNKNOWN_VERSION; static final String VERSION; static final String BQC_ID; static final BigQueryFactory INSTANCE; }
@Test public void getBigQuery_localDev() throws Exception { BigQueryFactory factory = new BigQueryFactory(); Configuration configuration = CredentialConfigurationUtil.getTestConfiguration(); Bigquery bigquery = factory.getBigQuery(configuration); assertThat(bigquery).isNotNull(); assertThat(bigquery.getRootUrl()).isEqualTo("https: }
@Test public void getBigQuery_customEndpoint() throws Exception { BigQueryFactory factory = new BigQueryFactory(); Configuration configuration = CredentialConfigurationUtil.getTestConfiguration(); configuration.set(BQ_ROOT_URL.getKey(), "https: Bigquery bigquery = factory.getBigQuery(configuration); assertThat(bigquery).isNotNull(); assertThat(bigquery.getRootUrl()).isEqualTo("https: }