Package com.atlassian.jira.bc
Class ErrorMatcher
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
com.atlassian.jira.bc.ErrorMatcher
- All Implemented Interfaces:
org.hamcrest.Matcher<ServiceOutcome<?>>,org.hamcrest.SelfDescribing
- Since:
- v6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddError(String field, String message, ErrorCollection.Reason reason) addErrorCollection(ErrorCollection errors) addErrorMessage(String message) addErrorMessage(String message, ErrorCollection.Reason reason) addErrorMessages(Collection<String> errorMessages) addReason(ErrorCollection.Reason reason) addReasons(Set<ErrorCollection.Reason> reasons) protected voiddescribeMismatchSafely(ServiceOutcome<?> item, org.hamcrest.Description mismatchDescription) voiddescribeTo(org.hamcrest.Description description) protected booleanmatchesSafely(ServiceOutcome<?> serviceOutcome) setReasons(Set<ErrorCollection.Reason> reasons) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
-
Constructor Details
-
ErrorMatcher
public ErrorMatcher()
-
-
Method Details
-
setReasons
-
addReasons
-
addReason
-
addErrors
-
addErrorMessages
-
addErrorMessage
-
addErrorCollection
-
addError
-
addError
-
addErrorMessage
-
describeMismatchSafely
protected void describeMismatchSafely(ServiceOutcome<?> item, org.hamcrest.Description mismatchDescription) - Overrides:
describeMismatchSafelyin classorg.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
-
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-