public class Raises extends TypesafeQuickDiagnoseMatcherBase<Proc>
| Constructor and Description |
|---|
Raises(org.hamcrest.Matcher<? super Throwable> matcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(Proc proc,
org.hamcrest.Description mismatchDescription) |
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(Proc proc) |
protected boolean |
matchesSafely(Proc proc,
org.hamcrest.Description mismatchDescription) |
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?
|
describeMismatch, matches, matchesquickMatch, quickMatch_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic Raises(org.hamcrest.Matcher<? super Throwable> matcher)
public void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(Proc proc)
matchesSafely in class TypesafeQuickDiagnoseMatcherBase<Proc>protected void describeMismatchSafely(Proc proc, org.hamcrest.Description mismatchDescription)
describeMismatchSafely in class TypesafeQuickDiagnoseMatcherBase<Proc>protected boolean matchesSafely(Proc proc, org.hamcrest.Description mismatchDescription)
matchesSafely in class TypesafeQuickDiagnoseMatcherBase<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 © 2013. All Rights Reserved.