public class Raises 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 |
|---|
Raises(org.hamcrest.Matcher<? super Throwable> matcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
int |
getDescriptionPrecedence() |
protected boolean |
matchesSafely(Proc proc) |
protected <I extends Proc> |
matchResultSafely(I proc) |
static org.hamcrest.Matcher<Proc> |
raises(Class<? extends Throwable> clazz)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raises(Class<? extends Throwable> clazz,
org.hamcrest.Matcher<? super Throwable> matcher)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raises(Class<? extends Throwable> clazz,
String regex)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raises(org.hamcrest.Matcher<? super Throwable> throwableMatcher)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raises(String regex)
Does the proc raise a throwable that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raisesException()
Does the proc throw an exception?
|
static org.hamcrest.Matcher<Proc> |
raisesException(Class<? extends Exception> clazz)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raisesException(Class<? extends Exception> clazz,
String regex)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raisesException(org.hamcrest.Matcher<? super Exception> matcher)
Does the proc raise an exception that satisfies the condition?
|
static org.hamcrest.Matcher<Proc> |
raisesException(String regex)
Does the proc raise an exception that satisfies the condition?
|
describeMismatchSafely, matchesSafelydescribeMismatch, matches, matches, matchResultnestedDescribe, nestedDescribeTo, nestedMatch, nestedMatchquickMatch, quickMatch, quickMatchResult_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic Raises(org.hamcrest.Matcher<? super Throwable> matcher)
public 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> raises(org.hamcrest.Matcher<? super Throwable> throwableMatcher)
throwableMatcher - public static org.hamcrest.Matcher<Proc> raises(Class<? extends Throwable> clazz)
clazz - public static org.hamcrest.Matcher<Proc> raises(String regex)
regex - public static org.hamcrest.Matcher<Proc> raises(Class<? extends Throwable> clazz, String regex)
clazz - regex - public static org.hamcrest.Matcher<Proc> raises(Class<? extends Throwable> clazz, org.hamcrest.Matcher<? super Throwable> matcher)
clazz - matcher - public static org.hamcrest.Matcher<Proc> raisesException()
public static org.hamcrest.Matcher<Proc> raisesException(org.hamcrest.Matcher<? super Exception> matcher)
matcher - public static org.hamcrest.Matcher<Proc> raisesException(Class<? extends Exception> clazz)
clazz - public static org.hamcrest.Matcher<Proc> raisesException(String regex)
regex - Copyright © 2015. All rights reserved.