Package org.apache.batik.test
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: DefaultTestSuiteReport.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.batik.test.TestReport
TestReport.Entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TestReport.Entry[]
Descriptions in addition to that coming from children.static final String
Entry for a failed child test reportstatic final String
Entry for a passed child test reportstatic final String
Error code for a failed TestSuiteprotected TestSuiteReport
Parent report in case this report is part of a bigger one.protected List
Set ofTestReport
coming from theTestSuite
protected TestSuite
TestSuite that created this reportFields inherited from interface org.apache.batik.test.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 TypeMethodDescriptionvoid
addDescriptionEntry
(String key, Object value) Appendsentry
to the array of description entry.protected void
void
addReport
(TestReport report) Returns an array of childrenTestReports
which may be useful for reports generated byTestSuite
instances.Returns an array ofEntry
objects describing the test result.Returns the error code.Returns the parent report in case thisTestReport
is part of aTestSuiteReport
.getTest()
Returns theTest
object that generated thisTestReport
boolean
Returns the overall test resultvoid
setParentReport
(TestSuiteReport parent) Set this report's parent.
-
Field Details
-
ERROR_CHILD_TEST_FAILED
Error code for a failed TestSuite- See Also:
-
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 ofTestReport
coming 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:TestReport
Returns theTest
object that generated thisTestReport
- Specified by:
getTest
in interfaceTestReport
-
getErrorCode
Description copied from interface:TestReport
Returns the error code. This should never be null if the test failed (i.e., if hasPassed returns false).- Specified by:
getErrorCode
in interfaceTestReport
-
getParentReport
Description copied from interface:TestReport
Returns the parent report in case thisTestReport
is part of aTestSuiteReport
. This may be null.- Specified by:
getParentReport
in interfaceTestReport
-
setParentReport
Description copied from interface:TestReport
Set this report's parent.- Specified by:
setParentReport
in interfaceTestReport
-
hasPassed
public boolean hasPassed()Description copied from interface:TestReport
Returns the overall test result- Specified by:
hasPassed
in interfaceTestReport
-
addDescriptionEntry
Description copied from interface:TestReport
Appendsentry
to the array of description entry.- Specified by:
addDescriptionEntry
in interfaceTestReport
-
addDescriptionEntry
-
getDescription
Description copied from interface:TestReport
Returns an array ofEntry
objects describing the test result. Accepted value types areString
objects,URL
objects,File
objects andTestReport
objects.File
objects should be considered as temporary files- Specified by:
getDescription
in interfaceTestReport
-
addReport
-
getChildrenReports
Description copied from interface:TestSuiteReport
Returns an array of childrenTestReports
which may be useful for reports generated byTestSuite
instances.- Specified by:
getChildrenReports
in interfaceTestSuiteReport
-