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 |
hasErrorMessage(String errorMessage) |
static ErrorCollectionMatcher |
hasErrorMessages(String... errorMessage) |
static ErrorCollectionMatcher |
hasErrors(ErrorCollection errorCollection) |
static ErrorCollectionMatcher |
hasNoErrors() |
static ErrorCollectionMatcher |
hasOnlyError(String fieldName,
String errorMessage) |
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 hasOnlyError(String fieldName, String errorMessage)
public static ErrorCollectionMatcher hasErrorMessage(String errorMessage)
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-2015 Atlassian. All Rights Reserved.