Package org.apache.batik.test.xml
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: XMLTestSuiteLoader.java 1806580 2017-08-29 12:06:44Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
An error happened while processing aTest
description.static final String
An error happened while loading a test suite document.Fields inherited from interface org.apache.batik.test.xml.XMLReflectConstants
XR_ARG_TAG, XR_CLASS_ATTRIBUTE, XR_NAME_ATTRIBUTE, XR_PROPERTY_TAG, XR_VALUE_ATTRIBUTE
Fields inherited from interface org.apache.batik.test.xml.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 Test
protected static TestSuite
buildTestSuite
(Element element, TestSuite parent) Builds aTestSuite
from an input element.static TestSuite
loadTestSuite
(String testSuiteURI, TestSuite parent) Load the test suite defined by the input URIprotected static Document
loadTestSuiteDocument
(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 aTest
description. {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 aTestSuite
from 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
-