All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.ajug.jsl.jester.cases.TestInfo

java.lang.Object
   |
   +----org.ajug.jsl.jester.cases.TestInfo

public class TestInfo
extends Object
This is a datatron carrying a Test's published information. This data is designed to be displayed in the GUI to allow better understanding of a test.


Constructor Index

 o TestInfo()

Method Index

 o getClassName()
Returns the test class name.
 o getLongDescription()
Returns the long description.
 o getParent()
Returns the test's parent test or null if this is the root test.
 o getShortDescription()
Returns the short description.
 o isAsynch()
Determines whether the test runs asynchronously or not.
 o isStopOnAnyException()
Determines the stop on any exception policy.
 o isStopOnAssertException()
Determines the assert exception policy.
 o setClassName(String)
Sets the class name of the test.
 o setIsAsynch(boolean)
Sets whether the test runs asynchronously or not.
 o setIsStopOnAssertException(boolean)
Sets policy on whether the entire test suite will be stopped if this test cause an assert exception.
 o setLongDescription(String)
Sets the long description of what the test does.
 o setParent(Test)
Sets the test's parent.
 o setShortDescription(String)
Sets the short description of what the test does.
 o setStopOnAnyException(boolean)
Sets policy on whether the entire test suite will be stopped if this test cause any exception.

Constructors

 o TestInfo
 public TestInfo()

Methods

 o setParent
 public void setParent(Test parent)
Sets the test's parent. The root test has a null parent. The parent must be a container.

 o getParent
 public Test getParent()
Returns the test's parent test or null if this is the root test.

 o setClassName
 public void setClassName(String className)
Sets the class name of the test. This must extend TestCase or implement Test. The default is "[no name]". This is a required field.

 o getClassName
 public String getClassName()
Returns the test class name.

 o setShortDescription
 public void setShortDescription(String description)
Sets the short description of what the test does. This should be one sentence long. The default is "[no short description]". This a required field and cannot be set to null or blank.

 o getShortDescription
 public String getShortDescription()
Returns the short description.

 o setLongDescription
 public void setLongDescription(String description)
Sets the long description of what the test does. This can be as long as desired. This an optional field and may be set to null but not blank. The default is null.

 o getLongDescription
 public String getLongDescription()
Returns the long description.

 o setIsAsynch
 public void setIsAsynch(boolean isAsynch)
Sets whether the test runs asynchronously or not. If true then the test is run in a separate thread. The default is false.

 o isAsynch
 public boolean isAsynch()
Determines whether the test runs asynchronously or not.

 o setIsStopOnAssertException
 public void setIsStopOnAssertException(boolean isStop)
Sets policy on whether the entire test suite will be stopped if this test cause an assert exception. For example if a database connection is null then it may be best to stop the entire test suite. The default is false.

 o isStopOnAssertException
 public boolean isStopOnAssertException()
Determines the assert exception policy.

 o setStopOnAnyException
 public void setStopOnAnyException(boolean isStop)
Sets policy on whether the entire test suite will be stopped if this test cause any exception. For example a test may be responsible for creating a complex fixture used by many other tests. Any exception it causes means it's worthless to continue. The default is false.

 o isStopOnAnyException
 public boolean isStopOnAnyException()
Determines the stop on any exception policy.


All Packages  Class Hierarchy  This Package  Previous  Next  Index