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 Details

    • args

      protected String[] args
      Argument to feed into the XMLTestSuiteRunner
    • ids

      protected HashSet ids
      Expected ids in the report generated by the XMLTestSuiteRunner
    • idsArray

      protected String[] idsArray
  • Constructor Details

    • XMLTestSuiteRunnerTest

      public XMLTestSuiteRunnerTest(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 Details

    • runImpl

      public TestReport runImpl() throws Exception
      AbstractTest's template method implementation.
      Overrides:
      runImpl in class AbstractTest
      Throws:
      Exception
    • arrayToString

      protected String arrayToString(Object[] array)
    • reportIdsToString

      protected String reportIdsToString(TestReport r)
    • appendReportIds

      protected void appendReportIds(TestReport r, StringBuffer sb)
    • loadDummyTestRun

      protected Document loadDummyTestRun() throws Exception
      Loads the dummy testRun description
      Throws:
      Exception
    • checkTestReport

      protected String checkTestReport(TestReport report, Set idSet)
      Validates that the input TestReport contains only the expected identifiers. The following code is by no means optimized, but it gets the job done.