public class MatcherAccepts<T> extends TypesafeNestedResultMatcher<org.hamcrest.Matcher<? super T>>
NestedMatcher.NestedMatch<T,M extends org.hamcrest.Matcher<?>>, NestedMatcher.NestedMismatch<T,M extends org.hamcrest.Matcher<?>>, NestedMatcher.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 |
|---|
MatcherAccepts(boolean match,
T value) |
MatcherAccepts(boolean match,
T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher) |
MatcherAccepts(T value) |
MatcherAccepts(T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher) |
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
accepts(T value) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
accepts(T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
accepts(T value,
String messageMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
acceptsWithMessage(T value,
org.hamcrest.Matcher<? super String> messageMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
acceptsWithMessage(T value,
String messageMatcher) |
void |
describeTo(org.hamcrest.Description description) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
expects(T value,
String messageMatcher) |
int |
getDescriptionPrecedence() |
protected boolean |
matchesSafely(org.hamcrest.Matcher<? super T> item) |
protected <I extends org.hamcrest.Matcher<? super T>> |
matchResultSafely(I item) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejects(T value) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejects(T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejects(T value,
String messageMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejectsWithExpectedMessage(T value,
org.hamcrest.Matcher<? super String> messageMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejectsWithExpectedMessage(T value,
String messageMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejectsWithMessage(T value,
org.hamcrest.Matcher<? super String> messageMatcher) |
static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> |
rejectsWithMessage(T value,
String messageMatcher) |
describeMismatchSafely, matchesSafelydescribeMismatch, matches, matches, matchResultnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic MatcherAccepts(T value)
public MatcherAccepts(T value, org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher)
public MatcherAccepts(boolean match,
T value)
public MatcherAccepts(boolean match,
T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> accepts(T value)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejects(T value)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> accepts(T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejects(T value,
org.hamcrest.Matcher<? super MatchResult<T>> resultMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> acceptsWithMessage(T value,
org.hamcrest.Matcher<? super String> messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejectsWithMessage(T value,
org.hamcrest.Matcher<? super String> messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejectsWithExpectedMessage(T value,
org.hamcrest.Matcher<? super String> messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> acceptsWithMessage(T value,
String messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejectsWithMessage(T value,
String messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejectsWithExpectedMessage(T value,
String messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> accepts(T value,
String messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> rejects(T value,
String messageMatcher)
public static <T> org.hamcrest.Matcher<org.hamcrest.Matcher<? super T>> expects(T value,
String messageMatcher)
public void describeTo(org.hamcrest.Description description)
public int getDescriptionPrecedence()
protected boolean matchesSafely(org.hamcrest.Matcher<? super T> item)
matchesSafely in class TypesafeNestedResultMatcher<org.hamcrest.Matcher<? super T>>protected <I extends org.hamcrest.Matcher<? super T>> MatchResult<I> matchResultSafely(I item)
matchResultSafely in class TypesafeNestedResultMatcher<org.hamcrest.Matcher<? super T>>Copyright © 2015. All rights reserved.