|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cactus.WebTestResult
Represent the result of the execution of the Test class by the server redirector.If any exception was raised during the test, it is saved by this class.
Field Summary | |
static java.lang.String |
XML_EXCEPTION_CLASSNAME_ATTRIBUTE
Name of Exception XML attribute that contains the exception classname (see toXml() ). |
static java.lang.String |
XML_EXCEPTION_ELEMENT
Name of Exception XML tag (see toXml() ). |
static java.lang.String |
XML_EXCEPTION_MESSAGE_ELEMENT
Name of Exception Message XML tag (see toXml() ). |
static java.lang.String |
XML_EXCEPTION_STACKTRACE_ELEMENT
Name of Exception Stacktrace XML tag (see toXml() ). |
static java.lang.String |
XML_ROOT_ELEMENT
Name of Root XML tag (see toXml() ). |
Constructor Summary | |
WebTestResult()
Constructor to call when the test was ok and no error was raised. |
|
WebTestResult(java.lang.String theClassName,
java.lang.String theMessage,
java.lang.String theStackTrace)
Constructor used to reconstruct a WebTestResult object from its String representation. |
|
WebTestResult(java.lang.Throwable theException)
Constructor to call when an exception was raised during the test. |
Method Summary | |
java.lang.String |
getExceptionClassName()
|
java.lang.String |
getExceptionMessage()
|
java.lang.String |
getExceptionStackTrace()
|
boolean |
hasException()
|
java.lang.String |
toString()
|
java.lang.String |
toXml()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String XML_ROOT_ELEMENT
toXml()
).
public static final java.lang.String XML_EXCEPTION_ELEMENT
toXml()
).
public static final java.lang.String XML_EXCEPTION_CLASSNAME_ATTRIBUTE
toXml()
).
public static final java.lang.String XML_EXCEPTION_MESSAGE_ELEMENT
toXml()
).
public static final java.lang.String XML_EXCEPTION_STACKTRACE_ELEMENT
toXml()
).
Constructor Detail |
public WebTestResult()
public WebTestResult(java.lang.Throwable theException)
theException
- the raised exception.public WebTestResult(java.lang.String theClassName, java.lang.String theMessage, java.lang.String theStackTrace)
theClassName
- the class name of the exception thrown on the server
sidetheMessage
- the message of the exception thrown on the server sidetheStackTrace
- the stack trace of the exception thrown on the
server sideMethod Detail |
public java.lang.String getExceptionClassName()
null
otherwise.public java.lang.String getExceptionMessage()
null
otherwise.public boolean hasException()
public java.lang.String getExceptionStackTrace()
public java.lang.String toString()
Object.toString()
public java.lang.String toXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |