public class Returns extends TypesafeNestedResultMatcher<Proc>
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 |
|---|
Returns(org.hamcrest.Matcher<?> resultMatcher) |
Returns(org.hamcrest.Matcher<?> resultMatcher,
String returns,
String returned) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
int |
getDescriptionPrecedence() |
static org.hamcrest.Matcher<Proc> |
hasResult()
Does the proc complete without throwing an exception?
|
protected boolean |
matchesSafely(Proc proc) |
protected <I extends Proc> |
matchResultSafely(I proc) |
static org.hamcrest.Matcher<Proc> |
result(org.hamcrest.Matcher<?> resultMatcher)
Does the proc return a value that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
result(Object value)
Does the proc return a value equal to
value? |
static org.hamcrest.Matcher<Proc> |
returns()
Does the proc complete without throwing an exception?
|
static org.hamcrest.Matcher<Proc> |
returns(org.hamcrest.Matcher<?> resultMatcher)
Does the proc return a value that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
returns(Object value)
Does the proc return a value equal to
value? |
describeMismatchSafely, matchesSafelydescribeMismatch, matches, matches, matchResultnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic int getDescriptionPrecedence()
public void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(Proc proc)
matchesSafely in class TypesafeNestedResultMatcher<Proc>protected <I extends Proc> MatchResult<I> matchResultSafely(I proc)
matchResultSafely in class TypesafeNestedResultMatcher<Proc>public static org.hamcrest.Matcher<Proc> result(Object value)
value?value - public static org.hamcrest.Matcher<Proc> result(org.hamcrest.Matcher<?> resultMatcher)
resultMatcher - public static org.hamcrest.Matcher<Proc> hasResult()
public static org.hamcrest.Matcher<Proc> returns(Object value)
value?value - public static org.hamcrest.Matcher<Proc> returns(org.hamcrest.Matcher<?> resultMatcher)
resultMatcher - public static org.hamcrest.Matcher<Proc> returns()
Copyright © 2015. All rights reserved.