org.jtiger.report.xml
Class TestResultBeanImpl

java.lang.Object
  extended by org.jtiger.report.xml.TestResultBeanImpl

public final class TestResultBeanImpl
extends Object

A bean that is used by the XML result handler to produce a report.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
Author:
Tony Morris
See Also:
Serialized Form

Constructor Summary
TestResultBeanImpl()
          Create a default TestResultBeanImpl.
 
Method Summary
 boolean equals(Object o)
          Compares two instance of TestResultBeanImpl returning true iff the testResult, message, exception, elapsedTime, categories, testName, testDescription, testMethodName, testMethodParameterTypes, fixtureName, fixtureDescription, and fixtureClass properties are equal, false otherwise.
 String[] getCategories()
          Returns the categories property of the bean.
 Long getElapsedTime()
          Returns the elapsedTime property of the bean.
 Throwable getException()
          Returns the exception property of the bean.
 Class<?> getFixtureClass()
          Returns the fixtureClass property of the bean.
 String getFixtureDescription()
          Returns the fixtureDescription property of the bean.
 String getFixtureName()
          Returns the fixtureName property of the bean.
 String getMessage()
          Returns the message property of the bean.
 String getTestDescription()
          Returns the testDescription property of the bean.
 String getTestMethodName()
          Returns the testMethodName property of the bean.
 String getTestName()
          Returns the testName property of the bean.
 String getTestResult()
          Returns the testResult property of the bean.
 int hashCode()
          Returns a hash code for this TestResultBeanImpl based on the testResult, message, exception, elapsedTime, categories, testName, testDescription, testMethodName, testMethodParameterTypes, fixtureName, fixtureDescription, and fixtureClass properties.
 void setCategories(String[] categories)
          Sets the categories property of the bean.
 void setElapsedTime(Long elapsedTime)
          Sets the elapsedTime property of the bean.
 void setException(Throwable exception)
          Sets the exception property of the bean.
 void setFixtureClass(Class<?> fixtureClass)
          Sets the fixtureClass property of the bean.
 void setFixtureDescription(String fixtureDescription)
          Sets the fixtureDescription property of the bean.
 void setFixtureName(String fixtureName)
          Sets the fixtureName property of the bean.
 void setMessage(String message)
          Sets the message property of the bean.
 void setTestDescription(String testDescription)
          Sets the testDescription property of the bean.
 void setTestMethodName(String testMethodName)
          Sets the testMethodName property of the bean.
 void setTestName(String testName)
          Sets the testName property of the bean.
 void setTestResult(String testResult)
          Sets the testResult property of the bean.
 String toString()
          Returns a java.lang.String representation of the bean, which consists of the testResult property, the message property, the exception property, the elapsedTime property, the categories property, the testName property, the testDescription property, the testMethodName property, the testMethodParameterTypes property, the fixtureName property, the fixtureDescription property, and the fixtureClass property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestResultBeanImpl

public TestResultBeanImpl()
Create a default TestResultBeanImpl.

Method Detail

getTestResult

public String getTestResult()
Returns the testResult property of the bean.

Returns:
The testResult property of the bean.

setTestResult

public void setTestResult(String testResult)
Sets the testResult property of the bean.

Parameters:
testResult - The testResult property of the bean.

getMessage

public String getMessage()
Returns the message property of the bean.

Returns:
The message property of the bean.

setMessage

public void setMessage(String message)
Sets the message property of the bean.

Parameters:
message - The message property of the bean.

getException

public Throwable getException()
Returns the exception property of the bean.

Returns:
The exception property of the bean.

setException

public void setException(Throwable exception)
Sets the exception property of the bean.

Parameters:
exception - The exception property of the bean.

getElapsedTime

public Long getElapsedTime()
Returns the elapsedTime property of the bean.

Returns:
The elapsedTime property of the bean.

setElapsedTime

public void setElapsedTime(Long elapsedTime)
Sets the elapsedTime property of the bean.

Parameters:
elapsedTime - The elapsedTime property of the bean.

getCategories

public String[] getCategories()
Returns the categories property of the bean.

Returns:
The categories property of the bean.

setCategories

public void setCategories(String[] categories)
Sets the categories property of the bean.

Parameters:
categories - The categories property of the bean.

getTestName

public String getTestName()
Returns the testName property of the bean.

Returns:
The testName property of the bean.

setTestName

public void setTestName(String testName)
Sets the testName property of the bean.

Parameters:
testName - The testName property of the bean.

getTestDescription

public String getTestDescription()
Returns the testDescription property of the bean.

Returns:
The testDescription property of the bean.

setTestDescription

public void setTestDescription(String testDescription)
Sets the testDescription property of the bean.

Parameters:
testDescription - The testDescription property of the bean.

getTestMethodName

public String getTestMethodName()
Returns the testMethodName property of the bean.

Returns:
The testMethodName property of the bean.

setTestMethodName

public void setTestMethodName(String testMethodName)
Sets the testMethodName property of the bean.

Parameters:
testMethodName - The testMethodName property of the bean.

getFixtureName

public String getFixtureName()
Returns the fixtureName property of the bean.

Returns:
The fixtureName property of the bean.

setFixtureName

public void setFixtureName(String fixtureName)
Sets the fixtureName property of the bean.

Parameters:
fixtureName - The fixtureName property of the bean.

getFixtureDescription

public String getFixtureDescription()
Returns the fixtureDescription property of the bean.

Returns:
The fixtureDescription property of the bean.

setFixtureDescription

public void setFixtureDescription(String fixtureDescription)
Sets the fixtureDescription property of the bean.

Parameters:
fixtureDescription - The fixtureDescription property of the bean.

getFixtureClass

public Class<?> getFixtureClass()
Returns the fixtureClass property of the bean.

Returns:
The fixtureClass property of the bean.

setFixtureClass

public void setFixtureClass(Class<?> fixtureClass)
Sets the fixtureClass property of the bean.

Parameters:
fixtureClass - The fixtureClass property of the bean.

toString

public String toString()
Returns a java.lang.String representation of the bean, which consists of the testResult property, the message property, the exception property, the elapsedTime property, the categories property, the testName property, the testDescription property, the testMethodName property, the testMethodParameterTypes property, the fixtureName property, the fixtureDescription property, and the fixtureClass property.

Overrides:
toString in class Object
Returns:
A java.lang.String representation of the bean, which consists of the testResult property, the message property, the exception property, the elapsedTime property, the categories property, the testName property, the testDescription property, the testMethodName property, the testMethodParameterTypes property, the fixtureName property, the fixtureDescription property, and the fixtureClass property.

equals

public boolean equals(Object o)
Compares two instance of TestResultBeanImpl returning true iff the testResult, message, exception, elapsedTime, categories, testName, testDescription, testMethodName, testMethodParameterTypes, fixtureName, fixtureDescription, and fixtureClass properties are equal, false otherwise.

Overrides:
equals in class Object
Parameters:
o - An instance of TestResultBeanImpl to compare for equality.
Returns:
true iff the testResult, message, exception, elapsedTime, categories, testName, testDescription, testMethodName, testMethodParameterTypes, fixtureName, fixtureDescription, and fixtureClass properties are equal, false otherwise.

hashCode

public int hashCode()
Returns a hash code for this TestResultBeanImpl based on the testResult, message, exception, elapsedTime, categories, testName, testDescription, testMethodName, testMethodParameterTypes, fixtureName, fixtureDescription, and fixtureClass properties.

Overrides:
hashCode in class Object
Returns:
A hash code for this TestResultBeanImpl based on the testResult, message, exception, elapsedTime, categories, testName, testDescription, testMethodName, testMethodParameterTypes, fixtureName, fixtureDescription, and fixtureClass properties.