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,
Description description) |
void |
assertContainsInAnyOrder(TableRow... tableRows) |
static TestBigQuery |
create(Schema tableSchema)
Creates an instance of this rule.
|
java.lang.String |
tableSpec() |
public static TestBigQuery create(Schema tableSchema)
Loads GCP configuration from TestPipelineOptions
.
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, Description description)
apply
in interface org.junit.rules.TestRule
public java.lang.String tableSpec()
public void assertContainsInAnyOrder(TableRow... tableRows)