public class TestBigQuery
extends java.lang.Object
implements org.junit.rules.TestRule
Uses a TestPipeline to load the data from BigQuery for assertions.
Deletes the table on test shutdown.
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
assertContainsInAnyOrder(com.google.api.services.bigquery.model.TableRow... tableRows) |
static TestBigQuery |
create(org.apache.beam.sdk.schemas.Schema tableSchema)
Creates an instance of this rule.
|
java.lang.String |
tableSpec() |
public static TestBigQuery create(org.apache.beam.sdk.schemas.Schema tableSchema)
Loads GCP configuration from TestPipelineOptions.
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic java.lang.String tableSpec()
public void assertContainsInAnyOrder(com.google.api.services.bigquery.model.TableRow... tableRows)