@NotThreadSafe @Experimental public class BigqueryMatcher extends TypeSafeMatcher<PipelineResult> implements SerializableMatcher<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 |
---|---|
static BigqueryMatcher |
createUsingStandardSql(java.lang.String applicationName,
java.lang.String projectId,
java.lang.String query,
java.lang.String expectedChecksum) |
void |
describeMismatchSafely(PipelineResult pResult,
Description description) |
void |
describeTo(Description description) |
protected boolean |
matchesSafely(PipelineResult pipelineResult) |
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, matches
public BigqueryMatcher(java.lang.String applicationName, java.lang.String projectId, java.lang.String query, java.lang.String expectedChecksum)
public static BigqueryMatcher createUsingStandardSql(java.lang.String applicationName, java.lang.String projectId, java.lang.String query, java.lang.String expectedChecksum)
protected boolean matchesSafely(PipelineResult pipelineResult)
matchesSafely
in class TypeSafeMatcher<PipelineResult>
public void describeTo(Description description)
describeTo
in interface SelfDescribing
public void describeMismatchSafely(PipelineResult pResult, Description description)
describeMismatchSafely
in class TypeSafeMatcher<PipelineResult>