JUnit-addons
version 1.4

junitx.framework
Class ThrowableAssert

java.lang.Object
  |
  +--junitx.framework.ThrowableAssert

public class ThrowableAssert
extends java.lang.Object

A set of assert methods specially targetted to asserting throwable objects.

Version:
$Revision: 1.6 $ $Date: 2003/03/21 06:13:48 $
Author:
Vladimir R. Bossicard

Method Summary
static void assertEquals(java.lang.String message, java.lang.Throwable expected, java.lang.Throwable actual)
          Asserts that two throwable objects are equal.
static void assertEquals(java.lang.Throwable expected, java.lang.Throwable actual)
          Asserts that two throwable objects are equal.
static void assertSimilar(java.lang.String message, java.lang.Throwable expected, java.lang.Throwable actual)
          Assert that two throwable objects are similar.
static void assertSimilar(java.lang.Throwable expected, java.lang.Throwable actual)
          Assert that two throwable objects are similar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assertEquals

public static void assertEquals(java.lang.String message,
                                java.lang.Throwable expected,
                                java.lang.Throwable actual)
Asserts that two throwable objects are equal. Throws an AssertionFailedError if they are equal.

Two throwable objects are considered equals if:


assertEquals

public static void assertEquals(java.lang.Throwable expected,
                                java.lang.Throwable actual)
Asserts that two throwable objects are equal. Throws an AssertionFailedError if they are equal.

See Also:
assertEquals(String, Throwable, Throwable)

assertSimilar

public static void assertSimilar(java.lang.String message,
                                 java.lang.Throwable expected,
                                 java.lang.Throwable actual)
Assert that two throwable objects are similar. Throws an AssertionFailedError if they are equal. Two throwable objects are considered similar if:


assertSimilar

public static void assertSimilar(java.lang.Throwable expected,
                                 java.lang.Throwable actual)
Assert that two throwable objects are similar. Throws an AssertionFailedError if they are equal.

See Also:
assertSimilar(String, Throwable, Throwable)

JUnit-addons
version 1.4

Copyright © 2002-2003 Vladimir R. Bossicard. All Rights Reserved.