public class ErrorCollectionMatcher extends org.hamcrest.TypeSafeDiagnosingMatcher<ErrorCollection>
Constructor and Description |
---|
ErrorCollectionMatcher(ErrorCollection errorCollection,
boolean expectedNoErrors,
boolean expectSingleError) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
static ErrorCollectionMatcher |
hasError(String fieldName,
String errorMessage) |
static ErrorCollectionMatcher |
hasError(String fieldName,
String errorMessage,
ErrorCollection.Reason reason) |
static ErrorCollectionMatcher |
hasErrorMessage(String errorMessage) |
static ErrorCollectionMatcher |
hasErrorMessage(String errorMessage,
ErrorCollection.Reason reason) |
static ErrorCollectionMatcher |
hasErrorMessages(String... errorMessage) |
static ErrorCollectionMatcher |
hasErrors(ErrorCollection errorCollection) |
static ErrorCollectionMatcher |
hasNoErrors() |
static ErrorCollectionMatcher |
hasOnlyError(String fieldName,
String errorMessage) |
static ErrorCollectionMatcher |
hasOnlyErrorMessage(String errorMessage,
ErrorCollection.Reason reason) |
protected boolean |
matchesSafely(ErrorCollection errorCollection,
org.hamcrest.Description description) |
public ErrorCollectionMatcher(ErrorCollection errorCollection, boolean expectedNoErrors, boolean expectSingleError)
public static ErrorCollectionMatcher hasError(String fieldName, String errorMessage)
public static ErrorCollectionMatcher hasError(String fieldName, String errorMessage, ErrorCollection.Reason reason)
public static ErrorCollectionMatcher hasOnlyError(String fieldName, String errorMessage)
public static ErrorCollectionMatcher hasErrorMessage(String errorMessage)
public static ErrorCollectionMatcher hasErrorMessage(String errorMessage, ErrorCollection.Reason reason)
public static ErrorCollectionMatcher hasOnlyErrorMessage(String errorMessage, ErrorCollection.Reason reason)
public static ErrorCollectionMatcher hasErrorMessages(String... errorMessage)
public static ErrorCollectionMatcher hasErrors(@Nonnull ErrorCollection errorCollection)
public static ErrorCollectionMatcher hasNoErrors()
protected boolean matchesSafely(ErrorCollection errorCollection, org.hamcrest.Description description)
matchesSafely
in class org.hamcrest.TypeSafeDiagnosingMatcher<ErrorCollection>
public void describeTo(org.hamcrest.Description description)
Copyright © 2002-2017 Atlassian. All Rights Reserved.
View cookie preferences