org.apache.commons.cactus
Class ServletTestResult
java.lang.Object
|
+--org.apache.commons.cactus.ServletTestResult
- All Implemented Interfaces:
- java.io.Serializable
- public class ServletTestResult
- extends java.lang.Object
- implements java.io.Serializable
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.
- Version:
- 1.1
- See Also:
- Serialized Form
Constructor Summary |
ServletTestResult()
Constructor to call when the test was ok and no error was raised. |
ServletTestResult(java.lang.Throwable theException)
Constructor to call when an exception was raised during the test. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletTestResult
public ServletTestResult()
- Constructor to call when the test was ok and no error was raised.
ServletTestResult
public ServletTestResult(java.lang.Throwable theException)
- Constructor to call when an exception was raised during the test.
- Parameters:
theException
- the raised exception.
getExceptionClassName
public java.lang.String getExceptionClassName()
- Returns:
- the exception class name if an exception was raised or
null
otherwise.
getExceptionMessage
public java.lang.String getExceptionMessage()
- Returns:
- the exception message if an exception was raised or
null
otherwise.
hasException
public boolean hasException()
- Returns:
- true if an exception was raised during the test, false otherwise.
getExceptionStackTrace
public java.lang.String getExceptionStackTrace()
- Returns:
- the stack trace as a string
Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.