Class XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest

    • Field Detail

      • args

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

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

        protected java.lang.String[] idsArray
    • 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:
        runImpl in class AbstractTest
        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.Exception
        Loads the dummy testRun description
        Throws:
        java.lang.Exception
      • checkTestReport

        protected java.lang.String checkTestReport​(TestReport report,
                                                   java.util.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.