com.googlecode.catchexception.throwable
Class ThrowableNotThrownAssertionError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by com.googlecode.catchexception.throwable.ThrowableNotThrownAssertionError
All Implemented Interfaces:
Serializable

public class ThrowableNotThrownAssertionError
extends AssertionError

Thrown if a method has not thrown an throwable of the expected type.

Since:
16.09.2011
Author:
rwoo
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          See Serializable.
 
Constructor Summary
ThrowableNotThrownAssertionError(Class<E> clazz)
          Use this constructor if neither an throwable of the expected type nor another throwable is thrown.
ThrowableNotThrownAssertionError(Class<E> clazz, Throwable e)
          Use this constructor if an throwable of another than the expected type is thrown.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Serializable.

See Also:
Constant Field Values
Constructor Detail

ThrowableNotThrownAssertionError

public ThrowableNotThrownAssertionError(Class<E> clazz)
Use this constructor if neither an throwable of the expected type nor another throwable is thrown.

Type Parameters:
E - the type of the throwable that is not thrown.
Parameters:
clazz - the type of the throwable that is not thrown.

ThrowableNotThrownAssertionError

public ThrowableNotThrownAssertionError(Class<E> clazz,
                                        Throwable e)
Use this constructor if an throwable of another than the expected type is thrown.

Type Parameters:
E - the type of the throwable that is not thrown.
Parameters:
clazz - the type of the throwable that is not thrown.
e - the throwable that has been thrown instead of the expected one.


Copyright © 2015. All rights reserved.