static class XMLTestSuiteRunnerValidator.XMLTestSuiteRunnerTest extends AbstractTest
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
args
Argument to feed into the XMLTestSuiteRunner
|
protected java.util.HashSet |
ids
Expected ids in the report generated by the
XMLTestSuiteRunner
|
protected java.lang.String[] |
idsArray |
id, name, parent
Constructor and Description |
---|
XMLTestSuiteRunnerTest(java.lang.Object[] config) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendReportIds(TestReport r,
java.lang.StringBuffer sb) |
protected java.lang.String |
arrayToString(java.lang.Object[] array) |
protected java.lang.String |
checkTestReport(TestReport report,
java.util.Set idSet)
Validates that the input
TestReport
contains only the expected identifiers. |
protected org.w3c.dom.Document |
loadDummyTestRun()
Loads the dummy testRun description
|
protected java.lang.String |
reportIdsToString(TestReport r) |
TestReport |
runImpl()
AbstractTest 's template method implementation. |
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getName, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setName, setParent
protected java.lang.String[] args
protected java.util.HashSet ids
protected java.lang.String[] idsArray
public XMLTestSuiteRunnerTest(java.lang.Object[] config)
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.public TestReport runImpl() throws java.lang.Exception
AbstractTest
's template method implementation.runImpl
in class AbstractTest
java.lang.Exception
protected java.lang.String arrayToString(java.lang.Object[] array)
protected java.lang.String reportIdsToString(TestReport r)
protected void appendReportIds(TestReport r, java.lang.StringBuffer sb)
protected org.w3c.dom.Document loadDummyTestRun() throws java.lang.Exception
java.lang.Exception
protected java.lang.String checkTestReport(TestReport report, java.util.Set idSet)
TestReport
contains only the expected identifiers.
The following code is by no means optimized,
but it gets the job done.