jdave
Class ExpectedException<T>
java.lang.Object
jdave.ExpectedException<T>
- Direct Known Subclasses:
- ExactExpectedException, ExpectedExceptionWithMessage
public class ExpectedException<T>
- extends Object
- Author:
- Lasse Koskela
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expected
protected final Class<? extends T> expected
ExpectedException
public ExpectedException(Class<? extends T> expected)
matches
public boolean matches(Throwable t)
error
public String error(Throwable t)
matchesType
protected boolean matchesType(Class<? extends Throwable> actual)
notThrown
public String notThrown()
Copyright © 2010. All Rights Reserved.