Package org.apache.batik.test.xml
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]
Argument to feed into the XMLTestSuiteRunnerprotected HashSet
Expected ids in the report generated by the XMLTestSuiteRunnerprotected String[]
Fields inherited from class org.apache.batik.test.AbstractTest
id, name, parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
arrayToString
(Object[] array) protected String
checkTestReport
(TestReport report, Set idSet) Validates that the inputTestReport
contains only the expected identifiers.protected Document
Loads the dummy testRun descriptionprotected String
runImpl()
AbstractTest
's template method implementation.Methods inherited from class org.apache.batik.test.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:
runImpl
in classAbstractTest
- Throws:
Exception
-
arrayToString
-
reportIdsToString
-
appendReportIds
-
loadDummyTestRun
Loads the dummy testRun description- Throws:
Exception
-
checkTestReport
Validates that the inputTestReport
contains only the expected identifiers. The following code is by no means optimized, but it gets the job done.
-