| Modifier and Type | Class and Description |
|---|---|
class |
AndChainMatcher<T>
Conjunction of multiple matchers.
|
static class |
AndChainMatcher.Builder<T> |
class |
ChainBuilderBase<T>
Build a matcher chain using a
ChainFactory. |
class |
MatcherChainBase<T>
Combines multiple matchers.
|
class |
NOrChainMatcher<T> |
static class |
NOrChainMatcher.Builder<T> |
class |
OrChainMatcher<T> |
static class |
OrChainMatcher.Builder<T> |
class |
SomeOfChainMatcher<T>
Conjunction of multiple matchers.
|
static class |
SomeOfChainMatcher.Builder<T> |
class |
XOrChainMatcher<T> |
static class |
XOrChainMatcher.Builder<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
MatcherDescription<T>
Overrides the description of a matcher.
|
static class |
Nested.Match<T,M extends org.hamcrest.Matcher<?>> |
static class |
Nested.Mismatch<T,M extends org.hamcrest.Matcher<?>> |
static class |
Nested.Result<T,M extends org.hamcrest.Matcher<?>> |
class |
NestedMatcher<T>
Combines multiple matchers.
|
protected static class |
NestedMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>> |
protected static class |
NestedMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>> |
protected static class |
NestedMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>> |
class |
NestedResultMatcher<T>
Combines multiple matchers.
|
protected static class |
NestedResultMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>> |
protected static class |
NestedResultMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>> |
protected static class |
NestedResultMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>> |
class |
PrecedencedSelfDescribingBase |
| Modifier and Type | Method and Description |
|---|---|
static PrecedencedSelfDescribing |
Nested.joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
String sep) |
static PrecedencedSelfDescribing |
Nested.joinDescriptions(int myPrecedence,
Iterable<? extends org.hamcrest.SelfDescribing> nested,
String sep,
String lastSep,
String singleSep) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Nested.describeTo(PrecedencedSelfDescribing self,
org.hamcrest.SelfDescribing nested,
org.hamcrest.Description d)
Appends description of
s to d,
enclosed in parentheses if necessary. |
static void |
Nested.describeTo(PrecedencedSelfDescribing self,
org.hamcrest.SelfDescribing nested,
org.hamcrest.Description d,
String message)
Appends description of
s to d,
enclosed in parentheses if necessary. |
static boolean |
Nested.matches(PrecedencedSelfDescribing self,
org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch)
Invokes
QuickDiagnose.matches(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description)
for m,
enclosed in parentheses if necessary. |
static boolean |
Nested.matches(PrecedencedSelfDescribing self,
org.hamcrest.Matcher<?> matcher,
Object item,
org.hamcrest.Description mismatch,
String message)
Invokes
QuickDiagnose.matches(org.hamcrest.Matcher, java.lang.Object, org.hamcrest.Description, java.lang.String)
for m,
enclosed in parentheses if necessary. |
protected void |
Nested.Match.nestedDescribeTo(int myPrecedence,
PrecedencedSelfDescribing sd,
org.hamcrest.Description d) |
protected void |
Nested.Mismatch.nestedDescribeTo(int myPrecedence,
PrecedencedSelfDescribing sd,
org.hamcrest.Description d) |
protected void |
Nested.Result.nestedDescribeTo(int myPrecedence,
PrecedencedSelfDescribing sd,
org.hamcrest.Description d) |
protected void |
Nested.Match.nestedDescribeTo(int myPrecedence,
PrecedencedSelfDescribing sd,
org.hamcrest.Description d,
String message) |
protected void |
Nested.Mismatch.nestedDescribeTo(int myPrecedence,
PrecedencedSelfDescribing sd,
org.hamcrest.Description d,
String message) |
protected void |
Nested.Result.nestedDescribeTo(int myPrecedence,
PrecedencedSelfDescribing sd,
org.hamcrest.Description d,
String message) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
MatchResult<T>
Provides detailed information about the result of a match.
|
static interface |
MatchResult.Match<T>
Provides detailed information about a match.
|
static interface |
MatchResult.Mismatch<T>
Provides detailed information about a mismatch.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMatchResult<T,M extends org.hamcrest.Matcher<?>>
Implements a match result that can be either a match or a mismatch.
|
class |
AtomicMismatch<I,M extends org.hamcrest.Matcher<?>>
A mismatch that is not nested.
|
class |
MatcherProxy<T>
Redirects all calls to another matcher.
|
class |
MatchResultBase<T,M extends org.hamcrest.Matcher<?>> |
class |
MatchResultMismatch<T,M extends org.hamcrest.Matcher<?>>
Implements a failed match.
|
class |
MatchResultProxy<I,M extends org.hamcrest.Matcher<?>>
Can be used as a base class to decorate another match result.
|
class |
MatchResultSuccess<T,M extends org.hamcrest.Matcher<?>>
Implements a successful match.
|
| Constructor and Description |
|---|
AbstractMatchResult(T value,
M matcher,
boolean success,
PrecedencedSelfDescribing description) |
MatchResultMismatch(T value,
M matcher,
PrecedencedSelfDescribing mismatchDescription) |
MatchResultSuccess(T value,
M matcher,
PrecedencedSelfDescribing matchDescription) |
| Modifier and Type | Class and Description |
|---|---|
class |
TypesafeFeatureMatcher<V,F> |
class |
TypesafeNestedMatcher<T>
Combines multiple matchers.
|
class |
TypesafeNestedResultMatcher<T>
Combines multiple matchers.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CausedBy
Matches exception chains.
|
class |
ExceptionMessage
Matches the message of an exception.
|
| Modifier and Type | Class and Description |
|---|---|
class |
HasDescription |
class |
HasMatchResult<T> |
class |
IsMatchResult<T> |
class |
MatcherAccepts<T> |
class |
MatchResultExpected |
| Modifier and Type | Class and Description |
|---|---|
class |
CIs<T> |
| Modifier and Type | Class and Description |
|---|---|
class |
Raises |
class |
Returns |
Copyright © 2015. All rights reserved.