| java.lang.Object org.apache.batik.test.AbstractTest org.apache.batik.test.DefaultTestSuite org.apache.batik.test.xml.XMLTestSuiteRunnerValidator
XMLTestSuiteRunnerValidator | public class XMLTestSuiteRunnerValidator extends DefaultTestSuite (Code) | | Validates the operation of the XMLTestSuireRunner by checking
that it runs the tests specified by the command line parameter and
only these tests.
The test uses an dummy <testRun> which contains:
- testRun, id="all"
- testSuite, href="testSuiteA.xml"
- testSuite, href="testSuiteB.xml"
Where:
- testSuite, id="A"
- test, id="A1"
- test, id="A2"
- test, id="duplicateId"
- testGroup, id="AG"
- test, id="AG1"
- test, id="AG2"
and:
- testSuite, id="B"
- test, id="B1"
- test, id="B2"
- test, id="B3"
- test, id="duplicateId"
where all the leaf test pass.
author: Vincent Hardy version: $Id: XMLTestSuiteRunnerValidator.java 482121 2006-12-04 10:00:39Z dvholten $ |
Inner Class :static class XMLTestSuiteRunnerTest extends AbstractTest | |
Constructor Summary | |
public | XMLTestSuiteRunnerValidator() This suite is made of elementary tests which validate that
the XML result for a given input contains a list of
report ids and no more (i.e., that the expected test reports
were generated and no more). |
ENTRY_KEY_ACTUAL_RESULT | final public static String ENTRY_KEY_ACTUAL_RESULT(Code) | | |
ENTRY_KEY_CONFIGURATION | final public static String ENTRY_KEY_CONFIGURATION(Code) | | |
ENTRY_KEY_EXPECTED_RESULT | final public static String ENTRY_KEY_EXPECTED_RESULT(Code) | | |
ENTRY_KEY_TEST_IDS_NOT_RUN | final public static String ENTRY_KEY_TEST_IDS_NOT_RUN(Code) | | |
ENTRY_KEY_TEST_ID_NOT_EXPECTED | final public static String ENTRY_KEY_TEST_ID_NOT_EXPECTED(Code) | | |
ERROR_EXTRA_TEST_RUN | final public static String ERROR_EXTRA_TEST_RUN(Code) | | |
ERROR_TEST_NOT_RUN | final public static String ERROR_TEST_NOT_RUN(Code) | | |
dummyTestRun | final static String dummyTestRun(Code) | | Dummy test-suite used to run the test
|
XMLTestSuiteRunnerValidator | public XMLTestSuiteRunnerValidator()(Code) | | This suite is made of elementary tests which validate that
the XML result for a given input contains a list of
report ids and no more (i.e., that the expected test reports
were generated and no more).
Specificaly, with fully qualified ids:
- no arguments. All tests-reports should be produced.
- 1 target test: "all.B.B3". A single test-report should be produced
for B3.
- 1 target test-suite: "all.A". A test-report with
"A1", "A2", "duplicatedId", "AG", "AG.AG1" and "AG.AG2" should be produced.
- 1 target test-suite and 2 tests: "all.B and
all.A.A1 and all.A.A2. A test-report for "all.B.B1", "all.B.B2",
"all.B.B3", "all.B.duplicatedId", "all.A.A1" and "all.A.A2"
should be produced.
- 1 target testGroup: "AG". A test-report with
"A.AG", "A.AG.AG1" and "A.AG.AG2" should be produced.
In addition, the following test with non-qualified ids:
- 1 target test id: "duplicatedId" should be produced and
pass for "all.A.duplicatedId" and "all.B.duplicatedId".
|
|
|