org.opennms.test
Class AssertUtils

java.lang.Object
  extended by org.opennms.test.AssertUtils

public class AssertUtils
extends Object

Utilities to support assertions with JUnit.

Author:
dj@opennms.org

Constructor Summary
AssertUtils()
           
 
Method Summary
static void fail(String message, Throwable t)
          A version of Assert.fail that can be passed a Throwable which is the cause of this failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertUtils

public AssertUtils()
Method Detail

fail

public static void fail(String message,
                        Throwable t)
                 throws junit.framework.AssertionFailedError
A version of Assert.fail that can be passed a Throwable which is the cause of this failure.

Parameters:
message - message String to be passed to Assert.fail after appending the throwable stack trace
t - cause of this failure
Throws:
junit.framework.AssertionFailedError


Copyright © 2009. All Rights Reserved.