public class IsThrowable extends Object
| Constructor and Description |
|---|
IsThrowable() |
| Modifier and Type | Method and Description |
|---|---|
static InstanceOf<Exception> |
exception() |
static org.hamcrest.Matcher<Object> |
exception(Class<? extends Exception> clazz,
String message) |
static <T extends Exception> |
exception(Class<T> clazz) |
static <T extends Exception> |
exception(Class<T> clazz,
org.hamcrest.Matcher<? super T> matcher) |
static <T extends Exception> |
exception(Class<T> clazz,
String message,
org.hamcrest.Matcher<? super T> matcher) |
static org.hamcrest.Matcher<Object> |
exception(org.hamcrest.Matcher<? super Exception> matcher) |
static org.hamcrest.Matcher<Object> |
exception(String message) |
static InstanceOf<Throwable> |
throwable() |
static org.hamcrest.Matcher<Object> |
throwable(Class<? extends Throwable> clazz,
String message) |
static <T extends Throwable> |
throwable(Class<T> clazz) |
static <T extends Throwable> |
throwable(Class<T> clazz,
org.hamcrest.Matcher<? super T> matcher) |
static <T extends Throwable> |
throwable(Class<T> clazz,
String message,
org.hamcrest.Matcher<? super T> matcher) |
static org.hamcrest.Matcher<Object> |
throwable(org.hamcrest.Matcher<? super Throwable> matcher) |
static org.hamcrest.Matcher<Object> |
throwable(String message) |
public static InstanceOf<Throwable> throwable()
public static <T extends Throwable> InstanceOf<T> throwable(Class<T> clazz)
public static org.hamcrest.Matcher<Object> throwable(Class<? extends Throwable> clazz, String message)
public static org.hamcrest.Matcher<Object> throwable(org.hamcrest.Matcher<? super Throwable> matcher)
public static <T extends Throwable> org.hamcrest.Matcher<Object> throwable(Class<T> clazz, org.hamcrest.Matcher<? super T> matcher)
public static <T extends Throwable> org.hamcrest.Matcher<Object> throwable(Class<T> clazz, String message, org.hamcrest.Matcher<? super T> matcher)
public static InstanceOf<Exception> exception()
public static <T extends Exception> InstanceOf<T> exception(Class<T> clazz)
public static org.hamcrest.Matcher<Object> exception(org.hamcrest.Matcher<? super Exception> matcher)
public static org.hamcrest.Matcher<Object> exception(Class<? extends Exception> clazz, String message)
public static <T extends Exception> org.hamcrest.Matcher<Object> exception(Class<T> clazz, org.hamcrest.Matcher<? super T> matcher)
Copyright © 2013. All Rights Reserved.