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.
-
TestInfo()
-
-
getClassName()
- Returns the test class name.
-
getLongDescription()
- Returns the long description.
-
getParent()
- Returns the test's parent test or null if this is the root test.
-
getShortDescription()
- Returns the short description.
-
isAsynch()
- Determines whether the test runs asynchronously or not.
-
isStopOnAnyException()
- Determines the stop on any exception policy.
-
isStopOnAssertException()
- Determines the assert exception policy.
-
setClassName(String)
- Sets the class name of the test.
-
setIsAsynch(boolean)
- Sets whether the test runs asynchronously or not.
-
setIsStopOnAssertException(boolean)
- Sets policy on whether the entire test suite will be stopped if
this test cause an assert exception.
-
setLongDescription(String)
- Sets the long description of what the test does.
-
setParent(Test)
- Sets the test's parent.
-
setShortDescription(String)
- Sets the short description of what the test does.
-
setStopOnAnyException(boolean)
- Sets policy on whether the entire test suite will be stopped if
this test cause any exception.
TestInfo
public TestInfo()
setParent
public void setParent(Test parent)
- Sets the test's parent. The root test has a null parent.
The parent must be a container.
getParent
public Test getParent()
- Returns the test's parent test or null if this is the root test.
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.
getClassName
public String getClassName()
- Returns the test class name.
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.
getShortDescription
public String getShortDescription()
- Returns the short description.
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.
getLongDescription
public String getLongDescription()
- Returns the long description.
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.
isAsynch
public boolean isAsynch()
- Determines whether the test runs asynchronously or not.
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.
isStopOnAssertException
public boolean isStopOnAssertException()
- Determines the assert exception policy.
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.
isStopOnAnyException
public boolean isStopOnAnyException()
- Determines the stop on any exception policy.
All Packages Class Hierarchy This Package Previous Next Index