|
|||||||||
| Home >> All >> org >> apache >> batik >> [ test overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.test
Class DefaultTestSuiteReport

java.lang.Objectorg.apache.batik.test.DefaultTestSuiteReport
- All Implemented Interfaces:
- TestReport, TestSuiteReport
- public class DefaultTestSuiteReport
- extends java.lang.Object
- implements TestSuiteReport
- extends java.lang.Object
Simple implementation of the TestReport interface for TestSuite
- Version:
- $Id: DefaultTestSuiteReport.java,v 1.5 2004/08/18 07:16:57 vhardy Exp $
| Nested Class Summary |
| Nested classes inherited from class org.apache.batik.test.TestReport |
TestReport.Entry |
| Field Summary | |
protected TestReport.Entry[] |
description
Descriptions in addition to that coming from children. |
static java.lang.String |
ENTRY_KEY_FAILED_CHILD_TEST_REPORT
Entry for a failed child test report |
static java.lang.String |
ENTRY_KEY_PASSED_CHILD_TEST_REPORT
Entry for a passed child test report |
static java.lang.String |
ERROR_CHILD_TEST_FAILED
Error code for a failed TestSuite |
protected TestSuiteReport |
parent
Parent report in case this report is part of a bigger one. |
private boolean |
passed
Status of the TestSuite |
protected java.util.Vector |
reports
Set of TestReport coming from the TestSuite |
protected TestSuite |
testSuite
TestSuite that created this report |
| Constructor Summary | |
DefaultTestSuiteReport(TestSuite testSuite)
|
|
| Method Summary | |
void |
addDescriptionEntry(java.lang.String key,
java.lang.Object value)
Appends entry to the array of description entry. |
protected void |
addDescriptionEntry(TestReport.Entry entry)
|
void |
addReport(TestReport report)
|
TestReport[] |
getChildrenReports()
Returns an array of children TestReports which may be useful for reports generated by TestSuite instances. |
TestReport.Entry[] |
getDescription()
Returns an array of Entry objects describing the test result. |
java.lang.String |
getErrorCode()
Returns the error code. |
TestSuiteReport |
getParentReport()
Returns the parent report in case this TestReport is part of a TestSuiteReport. |
Test |
getTest()
Returns the Test object that generated this TestReport |
boolean |
hasPassed()
Returns the overall test result |
void |
setParentReport(TestSuiteReport parent)
Set this report's parent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ERROR_CHILD_TEST_FAILED
public static final java.lang.String ERROR_CHILD_TEST_FAILED
- Error code for a failed TestSuite
- See Also:
- Constant Field Values
ENTRY_KEY_FAILED_CHILD_TEST_REPORT
public static final java.lang.String ENTRY_KEY_FAILED_CHILD_TEST_REPORT
- Entry for a failed child test report
- See Also:
- Constant Field Values
ENTRY_KEY_PASSED_CHILD_TEST_REPORT
public static final java.lang.String ENTRY_KEY_PASSED_CHILD_TEST_REPORT
- Entry for a passed child test report
- See Also:
- Constant Field Values
reports
protected java.util.Vector reports
- Set of TestReport coming from the TestSuite
testSuite
protected TestSuite testSuite
- TestSuite that created this report
description
protected TestReport.Entry[] description
- Descriptions in addition to that coming from children.
parent
protected TestSuiteReport parent
- Parent report in case this report is part of a bigger one.
passed
private boolean passed
- Status of the TestSuite
| Constructor Detail |
DefaultTestSuiteReport
public DefaultTestSuiteReport(TestSuite testSuite)
| Method Detail |
getTest
public Test getTest()
- Description copied from interface:
TestReport - Returns the Test object that generated this
TestReport
- Specified by:
getTestin interfaceTestReport
getErrorCode
public java.lang.String 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:
getErrorCodein interfaceTestReport
getParentReport
public TestSuiteReport getParentReport()
- Description copied from interface:
TestReport - Returns the parent report in case this TestReport is
part of a TestSuiteReport. This may be null.
- Specified by:
getParentReportin interfaceTestReport
setParentReport
public void setParentReport(TestSuiteReport parent)
- Description copied from interface:
TestReport - Set this report's parent.
- Specified by:
setParentReportin interfaceTestReport
hasPassed
public boolean hasPassed()
- Description copied from interface:
TestReport - Returns the overall test result
- Specified by:
hasPassedin interfaceTestReport
addDescriptionEntry
public void addDescriptionEntry(java.lang.String key, java.lang.Object value)
- Description copied from interface:
TestReport - Appends entry to the array of description entry.
- Specified by:
addDescriptionEntryin interfaceTestReport
addDescriptionEntry
protected void addDescriptionEntry(TestReport.Entry entry)
getDescription
public TestReport.Entry[] getDescription()
- Description copied from interface:
TestReport - Returns an array of Entry objects describing the
test result.
Accepted value types are String objects, URL
objects, File objects and TestReport objects.
File objects should be considered as temporary files
- Specified by:
getDescriptionin interfaceTestReport
addReport
public void addReport(TestReport report)
getChildrenReports
public TestReport[] getChildrenReports()
- Description copied from interface:
TestSuiteReport - Returns an array of children TestReports which
may be useful for reports generated by TestSuite
instances.
- Specified by:
getChildrenReportsin interfaceTestSuiteReport
|
|||||||||
| Home >> All >> org >> apache >> batik >> [ test overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.batik.test.DefaultTestSuiteReport