public interface Test
Test
case. It is
highly recommended that implementations derive from the
AbstractTest
class or follow the same implementation
approach, so that no exception is thrown from the
run
method, which is critical for the operation
of the test infrastructure.Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the
Test 's id. |
String |
getName()
Returns this
Test 's name. |
TestSuite |
getParent()
Returns this
Test 's parent, in case this
Test is part of a TestSuite . |
String |
getQualifiedId()
Returns the
Test 's qualified id, that is,
the string made of all the id's parents separated
by ".". |
TestReport |
run()
Requests this
Test to run and produce a
report. |
void |
setId(String id)
Sets this
Test 's id. |
void |
setParent(TestSuite parent)
Set this
Test 's parent. |
String getName()
Test
's name.String getQualifiedId()
Test
'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".String getId()
Test
's id. The notion of
identifier is left to the user of the Test
object, which explains why the user may set the
id.void setId(String id)
Test
's id.TestReport run()
Test
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.TestSuite getParent()
Test
's parent, in case this
Test
is part of a TestSuite
.
The returned value may be null.void setParent(TestSuite parent)
Test
's parent.Copyright © 2000–2023 Apache Software Foundation. All rights reserved.