public final class StatusTypeMatchers extends Object
StatusType
.Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<StatusType> |
belongsToFamily(StatusType.Family family)
Builds a matcher for
StatusType s belonging to a StatusType.Family . |
static org.hamcrest.Matcher<StatusType> |
withCode(int code)
Builds a matcher for
StatusType s with specified status code. |
static org.hamcrest.Matcher<StatusType> |
withCode(StatusType code)
Builds a matcher for
StatusType s whose StatusType.code() matches the
specified StatusType 's status code. |
static org.hamcrest.Matcher<StatusType> |
withReasonPhrase(org.hamcrest.Matcher<String> reasonPhraseMatcher)
Builds a matcher for
StatusType s with matching reason phrase. |
public static org.hamcrest.Matcher<StatusType> belongsToFamily(StatusType.Family family)
StatusType
s belonging to a StatusType.Family
.family
- The StatusType.Family
to match.public static org.hamcrest.Matcher<StatusType> withReasonPhrase(org.hamcrest.Matcher<String> reasonPhraseMatcher)
StatusType
s with matching reason phrase.reasonPhraseMatcher
- Matcher
for the reason phrase.public static org.hamcrest.Matcher<StatusType> withCode(int code)
StatusType
s with specified status code.code
- The status code to match.public static org.hamcrest.Matcher<StatusType> withCode(StatusType code)
StatusType
s whose StatusType.code()
matches the
specified StatusType
's status code. Reason phrases are not included in the comparison.code
- The StatusType whose code should match.Copyright © 2016. All rights reserved.