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.0
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.
 
Method Summary
 java.lang.String getExceptionClassName()
           
 java.lang.String getExceptionMessage()
           
 java.lang.String getExceptionStackTrace()
           
 boolean hasException()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.