org.exolab.jmscts.report
Class TestRun

java.lang.Object
  |
  +--org.exolab.jmscts.report.TestRun
All Implemented Interfaces:
java.io.Serializable

public class TestRun
extends java.lang.Object
implements java.io.Serializable

This element describes the results of a single test run.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
TestRun()
           
 
Method Summary
 void addStatistic(int index, Statistic vStatistic)
          Method addStatistic
 void addStatistic(Statistic vStatistic)
          Method addStatistic
 void clearStatistic()
          Method clearStatistic
 java.util.Enumeration enumerateStatistic()
          Method enumerateStatistic
 boolean equals(java.lang.Object obj)
          Note: hashCode() has not been overriden
 Context getContext()
          Returns the value of field 'context'.
 Failure getFailure()
          Returns the value of field 'failure'.
 Statistic[] getStatistic()
          Method getStatistic
 Statistic getStatistic(int index)
          Method getStatistic
 int getStatisticCount()
          Method getStatisticCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeStatistic(Statistic vStatistic)
          Method removeStatistic
 void setContext(Context context)
          Sets the value of field 'context'.
 void setFailure(Failure failure)
          Sets the value of field 'failure'.
 void setStatistic(int index, Statistic vStatistic)
          Method setStatistic
 void setStatistic(Statistic[] statisticArray)
          Method setStatistic
static TestRun unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRun

public TestRun()
Method Detail

addStatistic

public void addStatistic(Statistic vStatistic)
                  throws java.lang.IndexOutOfBoundsException
Method addStatistic
Parameters:
vStatistic -  

addStatistic

public void addStatistic(int index,
                         Statistic vStatistic)
                  throws java.lang.IndexOutOfBoundsException
Method addStatistic
Parameters:
index -  
vStatistic -  

clearStatistic

public void clearStatistic()
Method clearStatistic

enumerateStatistic

public java.util.Enumeration enumerateStatistic()
Method enumerateStatistic

equals

public boolean equals(java.lang.Object obj)
Note: hashCode() has not been overriden
Overrides:
equals in class java.lang.Object
Parameters:
obj -  

getContext

public Context getContext()
Returns the value of field 'context'. The field 'context' has the following description: This element specifies the context of a test case.
Returns:
the value of field 'context'.

getFailure

public Failure getFailure()
Returns the value of field 'failure'. The field 'failure' has the following description: This element describes a test case failure.
Returns:
the value of field 'failure'.

getStatistic

public Statistic getStatistic(int index)
                       throws java.lang.IndexOutOfBoundsException
Method getStatistic
Parameters:
index -  

getStatistic

public Statistic[] getStatistic()
Method getStatistic

getStatisticCount

public int getStatisticCount()
Method getStatisticCount

isValid

public boolean isValid()
Method isValid

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
out -  

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal
Parameters:
handler -  

removeStatistic

public boolean removeStatistic(Statistic vStatistic)
Method removeStatistic
Parameters:
vStatistic -  

setContext

public void setContext(Context context)
Sets the value of field 'context'. The field 'context' has the following description: This element specifies the context of a test case.
Parameters:
context - the value of field 'context'.

setFailure

public void setFailure(Failure failure)
Sets the value of field 'failure'. The field 'failure' has the following description: This element describes a test case failure.
Parameters:
failure - the value of field 'failure'.

setStatistic

public void setStatistic(int index,
                         Statistic vStatistic)
                  throws java.lang.IndexOutOfBoundsException
Method setStatistic
Parameters:
index -  
vStatistic -  

setStatistic

public void setStatistic(Statistic[] statisticArray)
Method setStatistic
Parameters:
statisticArray -  

unmarshal

public static TestRun unmarshal(java.io.Reader reader)
                         throws org.exolab.castor.xml.MarshalException,
                                org.exolab.castor.xml.ValidationException
Method unmarshal
Parameters:
reader -  

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.