Package org.apache.batik.test
Interface Test
-
- All Known Subinterfaces:
TestSuite
- All Known Implementing Classes:
AbstractTest
,AbstractTestSuite
,DefaultTestSuite
,DummyValidTest
,DummyValidTestSuite
,OnePerformanceTest
,ParametrizedTest
,PerformanceTest
,PerformanceTestValidator
,PerformanceTestValidator.SimplePerformanceTest
,TestReportValidator
,XMLTestSuiteRunnerValidator
,XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest
public interface Test
Defines the interface of aTest
case. It is highly recommended that implementations derive from theAbstractTest
class or follow the same implementation approach, so that no exception is thrown from therun
method, which is critical for the operation of the test infrastructure.- Version:
- $Id: Test.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getId()
Returns theTest
's id.java.lang.String
getName()
Returns thisTest
's name.TestSuite
getParent()
Returns thisTest
's parent, in case thisTest
is part of aTestSuite
.java.lang.String
getQualifiedId()
Returns theTest
's qualified id, that is, the string made of all the id's parents separated by ".".TestReport
run()
Requests thisTest
to run and produce a report.void
setId(java.lang.String id)
Sets thisTest
's id.void
setParent(TestSuite parent)
Set thisTest
's parent.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns thisTest
's name.
-
getQualifiedId
java.lang.String getQualifiedId()
Returns theTest
's qualified id, that is, the string made of all the id's parents separated by ".". For example, if this test's id is "C", its parent id is "B" and its grand-parent id is "A", this method should return "A.B.C".
-
getId
java.lang.String getId()
Returns theTest
's id. The notion of identifier is left to the user of theTest
object, which explains why the user may set the id.
-
setId
void setId(java.lang.String id)
Sets thisTest
's id.
-
run
TestReport run()
Requests thisTest
to run and produce a report. It is critical for the test infrastructure that implementations never throw exceptions from the run method, even if an error occurs internally in the test.
-
getParent
TestSuite getParent()
Returns thisTest
's parent, in case thisTest
is part of aTestSuite
. The returned value may be null.
-
setParent
void setParent(TestSuite parent)
Set thisTest
's parent.
-
-