public class CIs<T> extends NestedResultMatcher<T>
NestedResultMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>>, NestedResultMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>>, NestedResultMatcher.NestedResult<T,M extends org.hamcrest.Matcher<?>>P_AND, P_ATOMIC, P_COMPLEX, P_NONE, P_OR, P_UNARY, P_UNARY_NO_PAREN| Constructor and Description |
|---|
CIs(org.hamcrest.Matcher<? super T> nested) |
CIs(org.hamcrest.Matcher<? super T> nested,
String prefix,
boolean not) |
CIs(org.hamcrest.Matcher<? super T> nested,
String prefix,
String pastPrefix,
boolean not) |
| Modifier and Type | Method and Description |
|---|---|
static <T> CIs<T> |
_has(org.hamcrest.Matcher<? super T> matcher) |
static <T> CIs<T> |
_is(org.hamcrest.Matcher<? super T> matcher) |
static <T> CIs<T> |
_isNot(org.hamcrest.Matcher<? super T> matcher) |
static <T> CIs<T> |
_not(org.hamcrest.Matcher<? super T> matcher) |
protected void |
appendPastPrefix(org.hamcrest.Description d) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
equals(Object obj) |
int |
getDescriptionPrecedence() |
static <T> CIs<T> |
has(org.hamcrest.Matcher<? super T> matcher) |
int |
hashCode() |
static <T> CIs<T> |
is(org.hamcrest.Matcher<? super T> matcher) |
static <T> CIs<T> |
isNot(org.hamcrest.Matcher<? super T> matcher) |
boolean |
matches(Object o) |
boolean |
matches(Object o,
org.hamcrest.Description d)
Evaluates the matcher for argument
item. |
<I> MatchResult<I> |
matchResult(I item)
Returns a
MatchResult that caches the mismatch descripton. |
static <T> CIs<T> |
not(org.hamcrest.Matcher<? super T> matcher) |
static String |
pastPrefix(String prefix) |
static <T> org.hamcrest.Matcher<T> |
wrap(String prefix,
boolean not,
org.hamcrest.Matcher<? super T> matcher) |
nestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchdescribeMismatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic CIs(org.hamcrest.Matcher<? super T> nested, String prefix, String pastPrefix, boolean not)
public CIs(org.hamcrest.Matcher<? super T> nested)
public static <T> CIs<T> is(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> has(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> not(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> isNot(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> _is(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> _has(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> _not(org.hamcrest.Matcher<? super T> matcher)
public static <T> CIs<T> _isNot(org.hamcrest.Matcher<? super T> matcher)
public boolean matches(Object o)
QuickResultMatcherBasematches in interface org.hamcrest.Matcher<T>matches in class QuickResultMatcherBase<T>public boolean matches(Object o, org.hamcrest.Description d)
QuickResultMatcherBaseitem.
A mismatch description is appended to mismatch
if and only if the match fails.
matches in interface QuickDiagnosingMatcher<T>matches in class QuickResultMatcherBase<T>o - The object against which the matcher is evaluated.d - The description to be built or appended to.true if item matches, otherwise false.public void describeTo(org.hamcrest.Description description)
public int getDescriptionPrecedence()
public <I> MatchResult<I> matchResult(I item)
QuickDiagnosingMatcherBaseMatchResult that caches the mismatch descripton.matchResult in interface QuickDiagnosingMatcher<T>matchResult in class QuickResultMatcherBase<T>protected void appendPastPrefix(org.hamcrest.Description d)
public static <T> org.hamcrest.Matcher<T> wrap(String prefix, boolean not, org.hamcrest.Matcher<? super T> matcher)
Copyright © 2015. All rights reserved.