Package org.opengis.cite.iso19136.data
Class XMLSchemaValidationTests
java.lang.Object
org.opengis.cite.iso19136.data.DataFixture
org.opengis.cite.iso19136.data.XMLSchemaValidationTests
Verifies that a GML instance document is valid with respect to an application schema.
Sources
- ISO 19136:2007, cl. A.3: Abstract test suite for GML documents
-
Field Summary
Fields inherited from class org.opengis.cite.iso19136.data.DataFixture
dataFile, model
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getXMLSchema
(org.testng.ITestContext testContext) Obtains the GML application schema from the ISuite context.void
[Test
] Verifies that a GML instance is valid with respect to its application schema.Methods inherited from class org.opengis.cite.iso19136.data.DataFixture
generateXPathExpression, initDataFixture, setDataFile, setSchemaModel
-
Constructor Details
-
XMLSchemaValidationTests
public XMLSchemaValidationTests()
-
-
Method Details
-
getXMLSchema
@BeforeClass public void getXMLSchema(org.testng.ITestContext testContext) Obtains the GML application schema from the ISuite context. The value of theSuiteAttribute.SCHEMA
attribute is expected to be a Schema object.- Parameters:
testContext
- The test (group) context.
-
isXMLSchemaValid
[Test
] Verifies that a GML instance is valid with respect to its application schema.Sources
- ISO 19136:2007, cl. A.3.4: Valid XML
- Throws:
SAXException
- If a fatal error occurs (e.g. instance is not well-formed).
-