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
static class XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest extends AbstractTest
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]argsArgument to feed into the XMLTestSuiteRunnerprotected java.util.HashSetidsExpected ids in the report generated by the XMLTestSuiteRunnerprotected java.lang.String[]idsArray-
Fields inherited from class org.apache.batik.test.AbstractTest
id, name, parent
-
-
Constructor Summary
Constructors Constructor Description XMLTestSuiteRunnerTest(java.lang.Object[] config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendReportIds(TestReport r, java.lang.StringBuffer sb)protected java.lang.StringarrayToString(java.lang.Object[] array)protected java.lang.StringcheckTestReport(TestReport report, java.util.Set idSet)Validates that the inputTestReportcontains only the expected identifiers.protected org.w3c.dom.DocumentloadDummyTestRun()Loads the dummy testRun descriptionprotected java.lang.StringreportIdsToString(TestReport r)TestReportrunImpl()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
-
-
-
-
Constructor Detail
-
XMLTestSuiteRunnerTest
public XMLTestSuiteRunnerTest(java.lang.Object[] config)
- 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 Detail
-
runImpl
public TestReport runImpl() throws java.lang.Exception
AbstractTest's template method implementation.- Overrides:
runImplin classAbstractTest- Throws:
java.lang.Exception
-
arrayToString
protected java.lang.String arrayToString(java.lang.Object[] array)
-
reportIdsToString
protected java.lang.String reportIdsToString(TestReport r)
-
appendReportIds
protected void appendReportIds(TestReport r, java.lang.StringBuffer sb)
-
loadDummyTestRun
protected org.w3c.dom.Document loadDummyTestRun() throws java.lang.ExceptionLoads the dummy testRun description- Throws:
java.lang.Exception
-
checkTestReport
protected java.lang.String checkTestReport(TestReport report, java.util.Set idSet)
Validates that the inputTestReportcontains only the expected identifiers. The following code is by no means optimized, but it gets the job done.
-
-