|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
junit.framework.AssertionFailedError
net.sourceforge.junitejb.RemoteAssertionFailedError
public class RemoteAssertionFailedError
RemoteAssertionFailedError is the client-side view of an assertion failed error on the server. All throwables caught on the server are wrapped with a RemoteTestException and rethrown. On the client side the exception is caught, and if the server side exception is an instance of AssertionFailedError, it is wrapped with an instance of this class and rethrown. That makes the exception an instance of AssertionFailedError so it is reconized as a failure and not an Error.
Constructor Summary | |
---|---|
RemoteAssertionFailedError(junit.framework.AssertionFailedError e,
java.lang.String remoteStackTrace)
Constructs a remote assertion failed error based on the specified AssertionFailedError and remote stack trace. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Gets the message exactly as it appeared on server side. |
junit.framework.AssertionFailedError |
getRemoteAssertionFailedError()
Gets the assertion failed error object from the server side. |
java.lang.String |
getRemoteStackTrace()
Gets the stack trace exactly as it appeared on the server side. |
void |
printStackTrace()
Prints the stack trace exactly as it appeared on the server side. |
void |
printStackTrace(java.io.PrintStream ps)
Prints the stack trace exactly as it appeared on the server side. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the stack trace exactly as it appeared on the server side. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteAssertionFailedError(junit.framework.AssertionFailedError e, java.lang.String remoteStackTrace)
e
- the AssertionFailedError that was thrown on the server sideremoteStackTrace
- the stack trace of the assertion failed error
exactly as it appeared on the server sideMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
ps
- the PrintStream on which the stack trace is printedpublic void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
pw
- the PrintWriter on which the stack trace is printedpublic junit.framework.AssertionFailedError getRemoteAssertionFailedError()
public java.lang.String getRemoteStackTrace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |