Class XMLSchemaValidationTests

java.lang.Object
org.opengis.cite.iso19136.data.DataFixture
org.opengis.cite.iso19136.data.XMLSchemaValidationTests

public class XMLSchemaValidationTests extends DataFixture
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
  • 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 the SuiteAttribute.SCHEMA attribute is expected to be a Schema object.
      Parameters:
      testContext - The test (group) context.
    • isXMLSchemaValid

      public void isXMLSchemaValid() throws SAXException
      [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).