Interface Test
- All Known Subinterfaces:
TestSuite
- All Known Implementing Classes:
AbstractRenderingAccuracyTest, AbstractTest, AbstractTestSuite, BERenderingTest, DefaultTestSuite, DummyValidTest, DummyValidTestSuite, ImageCompareTest, JSVGRenderingAccuracyTest, OnePerformanceTest, ParametrizedRenderingAccuracyTest, ParametrizedTest, PerformanceTest, PerformanceTestValidator, PerformanceTestValidator.SimplePerformanceTest, PreconfiguredRenderingTest, SamplesRenderingTest, SelfContainedSVGOnLoadTest, SelfContainedSVGOnLoadTestValidator, SelfContainedSVGOnLoadTestValidator.CannotLoadSVGDocument, SelfContainedSVGOnLoadTestValidator.DefaultErrorTest, SelfContainedSVGOnLoadTestValidator.InvalidTestResultElementsNumber, SelfContainedSVGOnLoadTestValidator.MissingOrEmptyErrorCode, SelfContainedSVGOnLoadTestValidator.ProcessingError, SelfContainedSVGOnLoadTestValidator.ReportError, SelfContainedSVGOnLoadTestValidator.ReportErrorAndEntries, SelfContainedSVGOnLoadTestValidator.ReportSuccess, SelfContainedSVGOnLoadTestValidator.UnexpectedResultValue, SVGAlternateStyleSheetRenderingAccuracyTest, SVGAnimatedRotateCenterTest, SVGMediaRenderingAccuracyTest, SVGOnLoadExceptionTest, SVGReferenceRenderingAccuracyTest, SVGRenderingAccuracyTest, SVGRenderingAccuracyTestValidator, SVGRenderingAccuracyTestValidator.AccurateRendering, SVGRenderingAccuracyTestValidator.AccurateRenderingWithVariation, SVGRenderingAccuracyTestValidator.DefaultConfigTest, SVGRenderingAccuracyTestValidator.DifferentSizes, SVGRenderingAccuracyTestValidator.InexistingReferenceImage, SVGRenderingAccuracyTestValidator.InvalidReferenceImageURL, SVGRenderingAccuracyTestValidator.InvalidSVGContent, SVGRenderingAccuracyTestValidator.InvalidSVGURL, SVGRenderingAccuracyTestValidator.SameSizeDifferentContent, SVGTextContentRenderingAccuracyTest, TestReportValidator, XMLTestSuiteRunnerValidator, XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest
public interface Test
Defines the interface of a
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.- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns theTest's id.getName()Returns thisTest's name.Returns thisTest's parent, in case thisTestis part of aTestSuite.Returns theTest's qualified id, that is, the string made of all the id's parents separated by ".".run()Requests thisTestto run and produce a report.voidSets thisTest's id.voidSet thisTest's parent.
-
Method Details
-
getName
String getName()Returns thisTest's name. -
getQualifiedId
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
String getId()Returns theTest's id. The notion of identifier is left to the user of theTestobject, which explains why the user may set the id. -
setId
Sets thisTest's id. -
run
TestReport run()Requests thisTestto 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 thisTestis part of aTestSuite. The returned value may be null. -
setParent
Set thisTest's parent.
-