Jadex 0.96-beta1

jadex.planlib
Class Testcase

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

public class Testcase
extends Object

A testcase consists of an agent type to test and the result reports.


Constructor Summary
Testcase()
          Create a new testcase.
Testcase(int cnt, TestReport[] reports)
          Create a new testcase.
Testcase(String type)
          Create a new testcase.
 
Method Summary
 long getDuration()
          Get the test duration.
 String getHTMLFragment(int number)
          Create an HTML representation of this element that can be included in an HTML document.
 TestReport[] getReports()
          Get the reports.
 int getTestCount()
          Get the test count.
 String getType()
          Get the type.
 boolean isPerformed()
          Check if this test case has been performed and is finished.
 boolean isSucceeded()
          Have all agent tests succeeded.
 void setReports(TestReport[] reports)
          Set the reports.
 void setTestCount(int cnt)
          Set the test count.
 void setType(String type)
          Set the type.
 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

Testcase

public Testcase()
Create a new testcase.


Testcase

public Testcase(String type)
Create a new testcase.


Testcase

public Testcase(int cnt,
                TestReport[] reports)
Create a new testcase.

Method Detail

getType

public String getType()
Get the type.

Returns:
The type.

setType

public void setType(String type)
Set the type.

Parameters:
type - The type.

getTestCount

public int getTestCount()
Get the test count.

Returns:
The test count.

setTestCount

public void setTestCount(int cnt)
Set the test count.

Parameters:
cnt - The test count.

getDuration

public long getDuration()
Get the test duration.

Returns:
The test duration.

getReports

public TestReport[] getReports()
Get the reports.

Returns:
The reports.

setReports

public void setReports(TestReport[] reports)
Set the reports.

Parameters:
reports - The reports.

isSucceeded

public boolean isSucceeded()
Have all agent tests succeeded.


isPerformed

public boolean isPerformed()
Check if this test case has been performed and is finished.


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.

getHTMLFragment

public String getHTMLFragment(int number)
Create an HTML representation of this element that can be included in an HTML document.

Parameters:
number - The number of the testcase (when displayed in a longer list), -1 for no number.

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.