public class Returns extends TypesafeQuickDiagnoseMatcherBase<Proc>
| Constructor and Description |
|---|
Returns(org.hamcrest.Matcher<?> resultMatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(Proc proc,
org.hamcrest.Description mismatch) |
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<Proc> |
hasResult()
Does the proc complete without throwing an exception?
|
protected boolean |
matchesSafely(Proc proc) |
protected boolean |
matchesSafely(Proc proc,
org.hamcrest.Description mismatch) |
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? |
describeMismatch, matches, matchesquickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(Proc proc)
matchesSafely in class TypesafeQuickDiagnoseMatcherBase<Proc>protected void describeMismatchSafely(Proc proc, org.hamcrest.Description mismatch)
describeMismatchSafely in class TypesafeQuickDiagnoseMatcherBase<Proc>protected boolean matchesSafely(Proc proc, org.hamcrest.Description mismatch)
matchesSafely in class TypesafeQuickDiagnoseMatcherBase<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 © 2013. All Rights Reserved.