public class BigQueryMocking extends Object
Modifier and Type | Method and Description |
---|---|
void |
dataset(com.google.cloud.bigquery.DatasetId datasetId) |
void |
dataset(String project,
String dataset) |
void |
dataset(com.google.cloud.bigquery.TableId tableId) |
static BigQueryMocking |
mock()
Get a
BigQueryMocking instance to be used for mocking bigquery tables and checking
tables outputed by a task output. |
void |
stagingTableId(com.google.cloud.bigquery.TableId finalTableId,
com.google.cloud.bigquery.TableId stagingTableId) |
void |
table(String project,
String dataset,
String table) |
void |
table(com.google.cloud.bigquery.TableId tableId) |
boolean |
tableExists(String project,
String dataset,
String table) |
boolean |
tableExists(com.google.cloud.bigquery.TableId tableId) |
boolean |
tablePublished(String project,
String dataset,
String table) |
boolean |
tablePublished(com.google.cloud.bigquery.TableId tableId) |
public static BigQueryMocking mock()
BigQueryMocking
instance to be used for mocking bigquery tables and checking
tables outputed by a task output. Must be called in a flo test scope.public boolean tableExists(com.google.cloud.bigquery.TableId tableId)
public boolean tablePublished(com.google.cloud.bigquery.TableId tableId)
public void dataset(com.google.cloud.bigquery.TableId tableId)
public void dataset(com.google.cloud.bigquery.DatasetId datasetId)
public void table(com.google.cloud.bigquery.TableId tableId)
public void stagingTableId(com.google.cloud.bigquery.TableId finalTableId, com.google.cloud.bigquery.TableId stagingTableId)
Copyright © 2020. All rights reserved.