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 aTestSuiteobject.- Version:
- $Id: XMLTestSuiteLoader.java 1806580 2017-08-29 12:06:44Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCANNOT_CREATE_TESTAn error happened while processing aTestdescription.static java.lang.StringTEST_SUITE_LOADING_EXCEPTIONAn 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 TestbuildTest(org.w3c.dom.Element element)protected static TestSuitebuildTestSuite(org.w3c.dom.Element element, TestSuite parent)Builds aTestSuitefrom an input element.static TestSuiteloadTestSuite(java.lang.String testSuiteURI, TestSuite parent)Load the test suite defined by the input URIprotected static org.w3c.dom.DocumentloadTestSuiteDocument(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 aTestdescription. {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 TestExceptionLoads the URI as aDocument- Throws:
TestException
-
buildTestSuite
protected static TestSuite buildTestSuite(org.w3c.dom.Element element, TestSuite parent) throws TestException
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
protected static Test buildTest(org.w3c.dom.Element element) throws TestException
- Throws:
TestException
-
-