public class XMLSchemaTests extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static long |
COMPILE_TIMEOUT
Timeout for compiling schemas /ms
|
Constructor and Description |
---|
XMLSchemaTests() |
Modifier and Type | Method and Description |
---|---|
void |
compileXMLSchema(org.testng.ITestContext testContext)
[
@Test ] Verifies the validity of the GML application schema XML
document with respect to the W3C XML Schema specification. |
void |
getSchemaURIsFromTestContext(org.testng.ITestContext testContext)
Obtains the schema locations from the ISuite context.
|
(package private) void |
setSchemaLocations(Set<URI> schemaURIs)
Sets the application schema(s) to check.
|
static final long COMPILE_TIMEOUT
public void getSchemaURIsFromTestContext(org.testng.ITestContext testContext)
SuiteAttribute.SCHEMA_LOC_SET
should evaluate to a Set of URI
objects specifying the locations of the relevant XML Schema grammars.testContext
- The test (group) context.public void compileXMLSchema(org.testng.ITestContext testContext) throws SAXException, IOException
@Test
] Verifies the validity of the GML application schema XML
document with respect to the W3C XML Schema specification. It must
satisfy all relevant constraints imposed by the XML Schema specification.
If the schema is successfully compiled with no errors it is added to the
ISuite context as the value of the schema
attribute. The resulting (immutable, thread-safe) Schema object may then
be used to construct a Validator.
A fail verdict is produced if it takes longer than 60000L ms to compile the schema(s).
testContext
- The test (group) context.SAXException
- If a schema cannot be read.IOException
- If a schema resource cannot be accessed for any reason.Copyright © 2020 Open Geospatial Consortium. All rights reserved.