Package org.apache.batik.test.xml
Class XMLTestSuiteLoader
- java.lang.Object
-
- org.apache.batik.test.xml.XMLTestSuiteLoader
-
- All Implemented Interfaces:
XMLReflectConstants
,XTSConstants
public class XMLTestSuiteLoader extends java.lang.Object implements XTSConstants
This class loads an XML document describing a test suite into aTestSuite
object.- Version:
- $Id: XMLTestSuiteLoader.java 1806580 2017-08-29 12:06:44Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CANNOT_CREATE_TEST
An error happened while processing aTest
description.static java.lang.String
TEST_SUITE_LOADING_EXCEPTION
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 Constructor Description XMLTestSuiteLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Test
buildTest(org.w3c.dom.Element element)
protected static TestSuite
buildTestSuite(org.w3c.dom.Element element, TestSuite parent)
Builds aTestSuite
from an input element.static TestSuite
loadTestSuite(java.lang.String testSuiteURI, TestSuite parent)
Load the test suite defined by the input URIprotected static org.w3c.dom.Document
loadTestSuiteDocument(java.lang.String testSuiteURI)
Loads the URI as aDocument
-
-
-
Field Detail
-
TEST_SUITE_LOADING_EXCEPTION
public static final java.lang.String 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:
- Constant Field Values
-
CANNOT_CREATE_TEST
public static final java.lang.String 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:
- Constant Field Values
-
-
Method Detail
-
loadTestSuite
public static TestSuite loadTestSuite(java.lang.String testSuiteURI, TestSuite parent) throws TestException
Load the test suite defined by the input URI- Throws:
TestException
-
loadTestSuiteDocument
protected static org.w3c.dom.Document loadTestSuiteDocument(java.lang.String testSuiteURI) throws TestException
Loads the URI as aDocument
- Throws:
TestException
-
buildTestSuite
protected static TestSuite buildTestSuite(org.w3c.dom.Element element, TestSuite parent) throws TestException
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
protected static Test buildTest(org.w3c.dom.Element element) throws TestException
- Throws:
TestException
-
-