Class DefaultTestSuiteReport
java.lang.Object
org.apache.batik.test.DefaultTestSuiteReport
- All Implemented Interfaces:
TestReport, TestSuiteReport
Simple implementation of the
TestReport interface
for TestSuite- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from interface TestReport
TestReport.Entry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TestReport.Entry[]Descriptions in addition to that coming from children.static final StringEntry for a failed child test reportstatic final StringEntry for a passed child test reportstatic final StringError code for a failed TestSuiteprotected TestSuiteReportParent report in case this report is part of a bigger one.protected ListSet ofTestReportcoming from theTestSuiteprotected TestSuiteTestSuite that created this reportFields inherited from interface TestReport
ENTRY_KEY_ERROR_CONDITION_STACK_TRACE, ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_CLASS, ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_MESSAGE, ENTRY_KEY_INTERNAL_TEST_FAILURE_EXCEPTION_STACK_TRACE, ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_CLASS, ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_MESSAGE, ENTRY_KEY_REPORTED_TEST_FAILURE_EXCEPTION_STACK_TRACE, ERROR_ASSERTION_FAILED, ERROR_INTERNAL_TEST_FAILURE, ERROR_TEST_FAILED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescriptionEntry(String key, Object value) Appendsentryto the array of description entry.protected voidvoidaddReport(TestReport report) Returns an array of childrenTestReportswhich may be useful for reports generated byTestSuiteinstances.Returns an array ofEntryobjects describing the test result.Returns the error code.Returns the parent report in case thisTestReportis part of aTestSuiteReport.getTest()Returns theTestobject that generated thisTestReportbooleanReturns the overall test resultvoidsetParentReport(TestSuiteReport parent) Set this report's parent.
-
Field Details
-
ERROR_CHILD_TEST_FAILED
-
ENTRY_KEY_FAILED_CHILD_TEST_REPORT
Entry for a failed child test report- See Also:
-
ENTRY_KEY_PASSED_CHILD_TEST_REPORT
Entry for a passed child test report- See Also:
-
reports
Set ofTestReportcoming from theTestSuite -
testSuite
TestSuite that created this report -
description
Descriptions in addition to that coming from children. -
parent
Parent report in case this report is part of a bigger one.
-
-
Constructor Details
-
DefaultTestSuiteReport
-
-
Method Details
-
getTest
Description copied from interface:TestReportReturns theTestobject that generated thisTestReport- Specified by:
getTestin interfaceTestReport
-
getErrorCode
Description copied from interface:TestReportReturns the error code. This should never be null if the test failed (i.e., if hasPassed returns false).- Specified by:
getErrorCodein interfaceTestReport
-
getParentReport
Description copied from interface:TestReportReturns the parent report in case thisTestReportis part of aTestSuiteReport. This may be null.- Specified by:
getParentReportin interfaceTestReport
-
setParentReport
Description copied from interface:TestReportSet this report's parent.- Specified by:
setParentReportin interfaceTestReport
-
hasPassed
public boolean hasPassed()Description copied from interface:TestReportReturns the overall test result- Specified by:
hasPassedin interfaceTestReport
-
addDescriptionEntry
Description copied from interface:TestReportAppendsentryto the array of description entry.- Specified by:
addDescriptionEntryin interfaceTestReport
-
addDescriptionEntry
-
getDescription
Description copied from interface:TestReportReturns an array ofEntryobjects describing the test result. Accepted value types areStringobjects,URLobjects,Fileobjects andTestReportobjects.Fileobjects should be considered as temporary files- Specified by:
getDescriptionin interfaceTestReport
-
addReport
-
getChildrenReports
Description copied from interface:TestSuiteReportReturns an array of childrenTestReportswhich may be useful for reports generated byTestSuiteinstances.- Specified by:
getChildrenReportsin interfaceTestSuiteReport
-