Class DefaultTestReport
java.lang.Object
org.apache.batik.test.DefaultTestReport
- All Implemented Interfaces:
TestReport
Simple, default implementation for the
TestReport
interface.- Version:
- $Id$
-
Nested Class Summary
Nested classes/interfaces inherited from interface TestReport
TestReport.Entry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TestReport.Entry[]private Stringprotected TestSuiteReportParent report, in case this report is part of aTestSuiteReportprivate booleanprotected TestFields 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 voidReturns 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 resultvoidsetDescription(TestReport.Entry[] description) voidsetErrorCode(String errorCode) voidsetParentReport(TestSuiteReport parent) Set this report's parent.voidsetPassed(boolean passed)
-
Field Details
-
passed
private boolean passed -
description
-
test
-
errorCode
-
parent
Parent report, in case this report is part of aTestSuiteReport
-
-
Constructor Details
-
DefaultTestReport
-
-
Method Details
-
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
-
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
-
setErrorCode
-
hasPassed
public boolean hasPassed()Description copied from interface:TestReportReturns the overall test result- Specified by:
hasPassedin interfaceTestReport
-
setPassed
public void setPassed(boolean passed) -
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
-
setDescription
-
addDescriptionEntry
Description copied from interface:TestReportAppendsentryto the array of description entry.- Specified by:
addDescriptionEntryin interfaceTestReport
-
addDescriptionEntry
-