@NotThreadSafe public class BigqueryMatcher extends TypeSafeMatcher<BigqueryMatcher.TableAndQuery> implements SerializableMatcher<BigqueryMatcher.TableAndQuery>
Example:
[
assertThat(job, new BigqueryMatcher(appName, projectId, queryString, expectedChecksum));
]
Modifier and Type | Class and Description |
---|---|
static class |
BigqueryMatcher.TableAndQuery |
Modifier and Type | Method and Description |
---|---|
static BigqueryMatcher.TableAndQuery |
createQuery(java.lang.String applicationName,
java.lang.String projectId,
java.lang.String query) |
static BigqueryMatcher.TableAndQuery |
createQueryUsingStandardSql(java.lang.String applicationName,
java.lang.String projectId,
java.lang.String query) |
void |
describeMismatchSafely(BigqueryMatcher.TableAndQuery tableAndQuery,
Description description) |
void |
describeTo(Description description) |
protected boolean |
matchesSafely(BigqueryMatcher.TableAndQuery tableAndQuery) |
static BigqueryMatcher |
queryResultHasChecksum(java.lang.String checksum) |
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 static BigqueryMatcher queryResultHasChecksum(java.lang.String checksum)
public static BigqueryMatcher.TableAndQuery createQuery(java.lang.String applicationName, java.lang.String projectId, java.lang.String query)
public static BigqueryMatcher.TableAndQuery createQueryUsingStandardSql(java.lang.String applicationName, java.lang.String projectId, java.lang.String query)
protected boolean matchesSafely(BigqueryMatcher.TableAndQuery tableAndQuery)
matchesSafely
in class TypeSafeMatcher<BigqueryMatcher.TableAndQuery>
public void describeTo(Description description)
describeTo
in interface SelfDescribing
public void describeMismatchSafely(BigqueryMatcher.TableAndQuery tableAndQuery, Description description)
describeMismatchSafely
in class TypeSafeMatcher<BigqueryMatcher.TableAndQuery>