jdave
Class ExpectedExceptionWithMessage<T>

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

public class ExpectedExceptionWithMessage<T>
extends ExpectedException<T>

Author:
Lasse Koskela, Pekka Enberg

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

Field Detail

message

protected final java.lang.String message
Constructor Detail

ExpectedExceptionWithMessage

public ExpectedExceptionWithMessage(java.lang.Class<? extends T> type,
                                    java.lang.String message)
Method Detail

matches

public boolean matches(java.lang.Throwable t)
Overrides:
matches in class ExpectedException<T>

error

public java.lang.String error(java.lang.Throwable t)
Overrides:
error in class ExpectedException<T>


Copyright © 2008. All Rights Reserved.