org.apache.cactus
class WebTestResult

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

public class WebTestResult
extends java.lang.Object
implements 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.4 2002/07/21 12:09:16 vmassol Exp $
Author:
Vincent Massol

Field Summary
static String XML_EXCEPTION_CLASSNAME_ATTRIBUTE
          Name of Exception XML attribute that contains the exception classname (see toXml()).
          
static String XML_EXCEPTION_ELEMENT
          Name of Exception XML tag (see toXml()).
          
static String XML_EXCEPTION_MESSAGE_ELEMENT
          Name of Exception Message XML tag (see toXml()).
          
static String XML_EXCEPTION_STACKTRACE_ELEMENT
          Name of Exception Stacktrace XML tag (see toXml()).
          
static String XML_ROOT_ELEMENT
          Name of Root XML tag (see toXml()).
          
 
Constructor Summary
WebTestResult()
           
WebTestResult(Throwable theException)
           
WebTestResult(String theClassName, String theMessage, String theStackTrace)
           
 
Method Summary
 String getExceptionClassName()
           
 String getExceptionMessage()
           
 String getExceptionStackTrace()
           
 boolean hasException()
           
 String toString()
           
 String toXml()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_EXCEPTION_CLASSNAME_ATTRIBUTE

public static final String XML_EXCEPTION_CLASSNAME_ATTRIBUTE
Name of Exception XML attribute that contains the exception classname (see toXml()).

XML_EXCEPTION_ELEMENT

public static final String XML_EXCEPTION_ELEMENT
Name of Exception XML tag (see toXml()).

XML_EXCEPTION_MESSAGE_ELEMENT

public static final String XML_EXCEPTION_MESSAGE_ELEMENT
Name of Exception Message XML tag (see toXml()).

XML_EXCEPTION_STACKTRACE_ELEMENT

public static final String XML_EXCEPTION_STACKTRACE_ELEMENT
Name of Exception Stacktrace XML tag (see toXml()).

XML_ROOT_ELEMENT

public static final String XML_ROOT_ELEMENT
Name of Root XML tag (see toXml()).
Constructor Detail

WebTestResult

public WebTestResult()

WebTestResult

public WebTestResult(Throwable theException)

WebTestResult

public WebTestResult(String theClassName,
                     String theMessage,
                     String theStackTrace)
Method Detail

getExceptionClassName

public String getExceptionClassName()

getExceptionMessage

public String getExceptionMessage()

getExceptionStackTrace

public String getExceptionStackTrace()

hasException

public boolean hasException()

toString

public String toString()

toXml

public String toXml()


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