@NotThreadSafe
@Experimental
public class BigqueryMatcher
extends org.hamcrest.TypeSafeMatcher<org.apache.beam.sdk.PipelineResult>
implements org.apache.beam.sdk.testing.SerializableMatcher<org.apache.beam.sdk.PipelineResult>
Example:
[
assertThat(job, new BigqueryMatcher(appName, projectId, queryString, expectedChecksum));
]| Constructor and Description |
|---|
BigqueryMatcher(java.lang.String applicationName,
java.lang.String projectId,
java.lang.String query,
java.lang.String expectedChecksum) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(org.apache.beam.sdk.PipelineResult pResult,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(org.apache.beam.sdk.PipelineResult pipelineResult) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic BigqueryMatcher(java.lang.String applicationName,
java.lang.String projectId,
java.lang.String query,
java.lang.String expectedChecksum)
protected boolean matchesSafely(org.apache.beam.sdk.PipelineResult pipelineResult)
matchesSafely in class org.hamcrest.TypeSafeMatcher<org.apache.beam.sdk.PipelineResult>public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingpublic void describeMismatchSafely(org.apache.beam.sdk.PipelineResult pResult,
org.hamcrest.Description description)
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<org.apache.beam.sdk.PipelineResult>