Class XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest
java.lang.Object
org.apache.batik.test.AbstractTest
org.apache.batik.test.xml.XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest
- All Implemented Interfaces:
Test
- Enclosing class:
XMLTestSuiteRunnerValidator
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]Argument to feed into the XMLTestSuiteRunnerprotected HashSetExpected ids in the report generated by the XMLTestSuiteRunnerprotected String[]Fields inherited from class AbstractTest
id, name, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringarrayToString(Object[] array) protected StringcheckTestReport(TestReport report, Set idSet) Validates that the inputTestReportcontains only the expected identifiers.protected DocumentLoads the dummy testRun descriptionprotected StringrunImpl()AbstractTest's template method implementation.Methods inherited from class AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getName, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setName, setParent
-
Field Details
-
args
Argument to feed into the XMLTestSuiteRunner -
ids
Expected ids in the report generated by the XMLTestSuiteRunner -
idsArray
-
-
Constructor Details
-
XMLTestSuiteRunnerTest
- Parameters:
config- an array of two objects: a String containing the "config" to pass to the XMLTestSuiteRunner and an array of Strings containing the expected ids from the XMLTestSuiteRunner operation.
-
-
Method Details
-
runImpl
AbstractTest's template method implementation.- Overrides:
runImplin classAbstractTest- Throws:
Exception
-
arrayToString
-
reportIdsToString
-
appendReportIds
-
loadDummyTestRun
-
checkTestReport
Validates that the inputTestReportcontains only the expected identifiers. The following code is by no means optimized, but it gets the job done.
-