public class ErrorMatcher extends org.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
Constructor and Description |
---|
ErrorMatcher() |
Modifier and Type | Method and Description |
---|---|
ErrorMatcher |
addError(String field,
String message) |
ErrorMatcher |
addError(String field,
String message,
ErrorCollection.Reason reason) |
ErrorMatcher |
addErrorCollection(ErrorCollection errors) |
ErrorMatcher |
addErrorMessage(String message) |
ErrorMatcher |
addErrorMessage(String message,
ErrorCollection.Reason reason) |
ErrorMatcher |
addErrorMessages(Collection<String> errorMessages) |
ErrorMatcher |
addErrors(Map<String,String> errors) |
ErrorMatcher |
addReason(ErrorCollection.Reason reason) |
ErrorMatcher |
addReasons(Set<ErrorCollection.Reason> reasons) |
protected void |
describeMismatchSafely(ServiceOutcome<?> item,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(ServiceOutcome<?> serviceOutcome) |
ErrorMatcher |
setReasons(Set<ErrorCollection.Reason> reasons) |
public ErrorMatcher setReasons(Set<ErrorCollection.Reason> reasons)
public ErrorMatcher addReasons(Set<ErrorCollection.Reason> reasons)
public ErrorMatcher addReason(ErrorCollection.Reason reason)
public ErrorMatcher addErrors(Map<String,String> errors)
public ErrorMatcher addErrorMessages(Collection<String> errorMessages)
public ErrorMatcher addErrorMessage(String message, ErrorCollection.Reason reason)
public ErrorMatcher addErrorCollection(ErrorCollection errors)
public ErrorMatcher addError(String field, String message)
public ErrorMatcher addError(String field, String message, ErrorCollection.Reason reason)
public ErrorMatcher addErrorMessage(String message)
protected void describeMismatchSafely(ServiceOutcome<?> item, org.hamcrest.Description mismatchDescription)
describeMismatchSafely
in class org.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
protected boolean matchesSafely(ServiceOutcome<?> serviceOutcome)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
public void describeTo(org.hamcrest.Description description)
Copyright © 2002-2021 Atlassian. All Rights Reserved.