Class XMLTestSuiteLoader
java.lang.Object
org.apache.batik.test.xml.XMLTestSuiteLoader
- All Implemented Interfaces:
XMLReflectConstants, XTSConstants
This class loads an XML document describing a test suite
into a
TestSuite object.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAn error happened while processing aTestdescription.static final StringAn error happened while loading a test suite document.Fields inherited from interface XMLReflectConstants
XR_ARG_TAG, XR_CLASS_ATTRIBUTE, XR_NAME_ATTRIBUTE, XR_PROPERTY_TAG, XR_VALUE_ATTRIBUTEFields inherited from interface XTSConstants
XTS_ID_ATTRIBUTE, XTS_NAME_ATTRIBUTE, XTS_NAMESPACE_URI, XTS_TEST_GROUP_TAG, XTS_TEST_SUITE_TAG, XTS_TEST_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Testprotected static TestSuitebuildTestSuite(Element element, TestSuite parent) Builds aTestSuitefrom an input element.static TestSuiteloadTestSuite(String testSuiteURI, TestSuite parent) Load the test suite defined by the input URIprotected static DocumentloadTestSuiteDocument(String testSuiteURI) Loads the URI as aDocument
-
Field Details
-
TEST_SUITE_LOADING_EXCEPTION
An error happened while loading a test suite document. {0} : the <testSuite> href value. {1} : the exception's class name {2} : exception's message {3} : exception's stack trace- See Also:
-
CANNOT_CREATE_TEST
An error happened while processing aTestdescription. {0} : the <test> "className" attribute value {1} : exception's class name {2} : exception's message {3} : exception's stack trace- See Also:
-
-
Constructor Details
-
XMLTestSuiteLoader
public XMLTestSuiteLoader()
-
-
Method Details
-
loadTestSuite
Load the test suite defined by the input URI- Throws:
TestException
-
loadTestSuiteDocument
Loads the URI as aDocument- Throws:
TestException
-
buildTestSuite
Builds aTestSuitefrom an input element. This method assumes that element is a <testSuite> instance, as the input document should have been validated when loaded.- Throws:
TestException
-
buildTest
- Throws:
TestException
-