public class AssertionFailedErrorWrapper
extends junit.framework.AssertionFailedError
ServletExceptionWrapper except that this exception class
extends JUnit AssertionFailedError so that JUnit will
print a different message in it's runner console.| Constructor and Description |
|---|
AssertionFailedErrorWrapper()
Standard throwable constructor.
|
AssertionFailedErrorWrapper(java.lang.String theMessage)
Standard throwable constructor.
|
AssertionFailedErrorWrapper(java.lang.String theMessage,
java.lang.String theClassName,
java.lang.String theStackTrace)
The constructor to use to simulate a real exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getWrappedClassName() |
void |
printStackTrace(java.io.PrintStream thePs)
Simulates a printing of a stack trace by printing the string stack trace
|
void |
printStackTrace(java.io.PrintWriter thePw)
Simulates a printing of a stack trace by printing the string stack trace
|
public AssertionFailedErrorWrapper(java.lang.String theMessage)
theMessage - the exception messagepublic AssertionFailedErrorWrapper()
public AssertionFailedErrorWrapper(java.lang.String theMessage,
java.lang.String theClassName,
java.lang.String theStackTrace)
theMessage - the server exception messagetheClassName - the server exception class nametheStackTrace - the server exception stack tracepublic void printStackTrace(java.io.PrintStream thePs)
printStackTrace in class java.lang.ThrowablethePs - the stream to which to output the stack tracepublic void printStackTrace(java.io.PrintWriter thePw)
printStackTrace in class java.lang.ThrowablethePw - the writer to which to output the stack tracepublic java.lang.String getWrappedClassName()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.