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 void
describeMismatchSafely
(ServiceOutcome<?> item, org.hamcrest.Description mismatchDescription) void
describeTo
(org.hamcrest.Description description) protected boolean
matchesSafely
(ServiceOutcome<?> serviceOutcome) setReasons
(Set<ErrorCollection.Reason> reasons) Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
Methods 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:
describeMismatchSafely
in classorg.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
-
matchesSafely
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<ServiceOutcome<?>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-