junitx.framework
Class ThrowableAssert

java.lang.Object
  extended by junitx.framework.ThrowableAssert

public class ThrowableAssert
extends 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(String message, Throwable expected, Throwable actual)
          Asserts that two throwable objects are equal.
static void assertEquals(Throwable expected, Throwable actual)
          Asserts that two throwable objects are equal.
static void assertSimilar(String message, Throwable expected, Throwable actual)
          Assert that two throwable objects are similar.
static void assertSimilar(Throwable expected, 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(String message,
                                Throwable expected,
                                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(Throwable expected,
                                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(String message,
                                 Throwable expected,
                                 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(Throwable expected,
                                 Throwable actual)
Assert that two throwable objects are similar. Throws an AssertionFailedError if they are equal.

See Also:
assertSimilar(String, Throwable, Throwable)


Copyright © 2004-2011. All Rights Reserved.