jdave
Class ExpectedException<T>

java.lang.Object
  extended by jdave.ExpectedException<T>
Direct Known Subclasses:
ExactExpectedException, ExpectedExceptionWithMessage

public class ExpectedException<T>
extends java.lang.Object

Author:
Lasse Koskela

Field Summary
protected  java.lang.Class<? extends T> expected
           
 
Constructor Summary
ExpectedException(java.lang.Class<? extends T> expected)
           
 
Method Summary
 java.lang.String error(java.lang.Throwable t)
           
 boolean matches(java.lang.Throwable t)
           
protected  boolean matchesType(java.lang.Class<? extends java.lang.Throwable> actual)
           
 java.lang.String notThrown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expected

protected final java.lang.Class<? extends T> expected
Constructor Detail

ExpectedException

public ExpectedException(java.lang.Class<? extends T> expected)
Method Detail

matches

public boolean matches(java.lang.Throwable t)

error

public java.lang.String error(java.lang.Throwable t)

matchesType

protected boolean matchesType(java.lang.Class<? extends java.lang.Throwable> actual)

notThrown

public java.lang.String notThrown()


Copyright © 2008. All Rights Reserved.