| |
|
| java.lang.Object org.apache.cactus.internal.WebTestResult
WebTestResult | public class WebTestResult implements Serializable(Code) | | 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: $Id: WebTestResult.java 238991 2004-05-22 11:34:50Z vmassol $ |
Constructor Summary | |
public | WebTestResult() Constructor to call when the test was ok and no error was raised. | public | WebTestResult(Throwable theException) Constructor to call when an exception was raised during the test. | public | WebTestResult(String theClassName, String theMessage, String theStackTrace) Constructor used to reconstruct a WebTestResult object from its String
representation. |
XML_EXCEPTION_CLASSNAME_ATTRIBUTE | final public static String XML_EXCEPTION_CLASSNAME_ATTRIBUTE(Code) | | Name of Exception XML attribute that contains the exception classname
(see
WebTestResult.toXml() ).
|
WebTestResult | public WebTestResult()(Code) | | Constructor to call when the test was ok and no error was raised.
|
WebTestResult | public WebTestResult(Throwable theException)(Code) | | Constructor to call when an exception was raised during the test.
Parameters: theException - the raised exception. |
WebTestResult | public WebTestResult(String theClassName, String theMessage, String theStackTrace)(Code) | | Constructor used to reconstruct a WebTestResult object from its String
representation.
Parameters: theClassName - the class name of the exception thrown on the serverside Parameters: theMessage - the message of the exception thrown on the server side Parameters: theStackTrace - the stack trace of the exception thrown on theserver side |
getExceptionClassName | public String getExceptionClassName()(Code) | | the exception class name if an exception was raised ornull otherwise. |
getExceptionMessage | public String getExceptionMessage()(Code) | | the exception message if an exception was raised ornull otherwise. |
getExceptionStackTrace | public String getExceptionStackTrace()(Code) | | the stack trace as a string |
hasException | public boolean hasException()(Code) | | true if an exception was raised during the test, false otherwise. |
toXml | public String toXml()(Code) | | an XML representation of the test result to be sent in theHTTP response to the Cactus client. |
|
|
|