org.apache.cactus
Class WebTestResult

java.lang.Object
  |
  +--org.apache.cactus.WebTestResult
All Implemented Interfaces:
java.io.Serializable

public class WebTestResult
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:
$Id: WebTestResult.java,v 1.3 2001/09/14 20:21:46 pier Exp $
Author:
Vincent Massol
See Also:
Serialized Form

Constructor Summary
WebTestResult()
          Constructor to call when the test was ok and no error was raised.
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()
          Gives a string representation of the test result
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebTestResult

public WebTestResult()
Constructor to call when the test was ok and no error was raised.

WebTestResult

public WebTestResult(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

toString

public java.lang.String toString()
Gives a string representation of the test result
Overrides:
toString in class java.lang.Object


Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.