public class

ErrorMatcher

extends TypeSafeMatcher<T>
java.lang.Object
   ↳ org.hamcrest.BaseMatcher<T>
     ↳ org.hamcrest.TypeSafeMatcher<T>
       ↳ com.atlassian.jira.bc.ErrorMatcher

Summary

Public Constructors
ErrorMatcher()
Public Methods
ErrorMatcher addError(String field, String message, ErrorCollection.Reason reason)
ErrorMatcher addError(String field, String message)
ErrorMatcher addErrorCollection(ErrorCollection errors)
ErrorMatcher addErrorMessage(String message)
ErrorMatcher addErrorMessage(String message, ErrorCollection.Reason reason)
ErrorMatcher addErrorMessages(Collection<String> errorMessages)
ErrorMatcher addErrors(Map<StringString> errors)
ErrorMatcher addReason(ErrorCollection.Reason reason)
ErrorMatcher addReasons(Set<ErrorCollection.Reason> reasons)
void describeTo(Description description)
ErrorMatcher setReasons(Set<ErrorCollection.Reason> reasons)
Protected Methods
void describeMismatchSafely(ServiceOutcome<?> item, Description mismatchDescription)
boolean matchesSafely(ServiceOutcome<?> serviceOutcome)
[Expand]
Inherited Methods
From class org.hamcrest.TypeSafeMatcher
From class org.hamcrest.BaseMatcher
From class java.lang.Object
From interface org.hamcrest.Matcher
From interface org.hamcrest.SelfDescribing

Public Constructors

public ErrorMatcher ()

Public Methods

public ErrorMatcher addError (String field, String message, ErrorCollection.Reason reason)

public ErrorMatcher addError (String field, String message)

public ErrorMatcher addErrorCollection (ErrorCollection errors)

public ErrorMatcher addErrorMessage (String message)

public ErrorMatcher addErrorMessage (String message, ErrorCollection.Reason reason)

public ErrorMatcher addErrorMessages (Collection<String> errorMessages)

public ErrorMatcher addErrors (Map<StringString> errors)

public ErrorMatcher addReason (ErrorCollection.Reason reason)

public ErrorMatcher addReasons (Set<ErrorCollection.Reason> reasons)

public void describeTo (Description description)

public ErrorMatcher setReasons (Set<ErrorCollection.Reason> reasons)

Protected Methods

protected void describeMismatchSafely (ServiceOutcome<?> item, Description mismatchDescription)

protected boolean matchesSafely (ServiceOutcome<?> serviceOutcome)