Jadex 0.96-beta1

jadex.planlib
Class TestReport

java.lang.Object
  extended by jadex.planlib.TestReport

public class TestReport
extends Object

A test report captures the description and results of a test.


Constructor Summary
TestReport()
          Create a new test report.
TestReport(String name, String description)
          Create a new test report.
TestReport(String name, String description, boolean succeded, String reason)
          Create a new test report.
 
Method Summary
 String getDescription()
          Get the description.
 String getName()
          Get the name.
 String getReason()
          Get the failure reason.
 boolean isSucceeded()
          Has the test succeeded.
 void setDescription(String description)
          Set the description.
 void setFailed(String reason)
          Set the report result to failed and set the failurereason.
 void setName(String name)
          Set the name.
 void setReason(String reason)
          Set the failure reason.
 void setSucceeded(boolean succeded)
          Set the test success.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestReport

public TestReport()
Create a new test report.


TestReport

public TestReport(String name,
                  String description)
Create a new test report.


TestReport

public TestReport(String name,
                  String description,
                  boolean succeded,
                  String reason)
Create a new test report.

Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public void setName(String name)
Set the name.

Parameters:
name - The name.

getDescription

public String getDescription()
Get the description.

Returns:
The description.

setDescription

public void setDescription(String description)
Set the description.

Parameters:
description - The description.

isSucceeded

public boolean isSucceeded()
Has the test succeeded.

Returns:
True, if test was successful.

setSucceeded

public void setSucceeded(boolean succeded)
Set the test success.

Parameters:
succeded - True on success.

getReason

public String getReason()
Get the failure reason.

Returns:
The failure reason.

setReason

public void setReason(String reason)
Set the failure reason.

Parameters:
reason - The failure reason.

setFailed

public void setFailed(String reason)
Set the report result to failed and set the failurereason.

Parameters:
reason - The failure reason.

toString

public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read.

Overrides:
toString in class Object
Returns:
a string representation of the object.

Jadex 0.96-beta1

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.