Class SchemaModelFixture

java.lang.Object
org.opengis.cite.iso19136.general.SchemaModelFixture
Direct Known Subclasses:
ComplexPropertyTests, FeatureComponentTests, GeometryComponentTests, LexicalConventionTests, ModelAndSyntaxTests, TemporalComponentTests, TopologyComponentTests

public class SchemaModelFixture extends Object
A supporting base class that provides configuration methods to establish a test fixture that provides access to a schema model. These methods are invoked before any configuration methods defined in a subclass.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<org.apache.xerces.xs.XSElementDeclaration>
    A list of the GML objects declared in the application schema (these can substitute for gml:AbstractGML).
    protected org.apache.xerces.xs.XSModel
    An XSModel object representing an XML Schema resource.
    protected AppSchemaInfo
    Provides information about the types of geographic objects defined in the application schema.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initSchemaModelFixture(org.testng.ITestContext testContext)
    Obtains the schema model from the ISuite context.
    void
    setSchemaModel(org.apache.xerces.xs.XSModel xsModel)
    Sets the schema model (intended only to facilitate unit testing).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • model

      protected org.apache.xerces.xs.XSModel model
      An XSModel object representing an XML Schema resource.
    • schemaInfo

      protected AppSchemaInfo schemaInfo
      Provides information about the types of geographic objects defined in the application schema.
    • gmlObjects

      protected List<org.apache.xerces.xs.XSElementDeclaration> gmlObjects
      A list of the GML objects declared in the application schema (these can substitute for gml:AbstractGML).
  • Constructor Details

    • SchemaModelFixture

      public SchemaModelFixture()
  • Method Details

    • initSchemaModelFixture

      @BeforeClass public void initSchemaModelFixture(org.testng.ITestContext testContext)
      Obtains the schema model from the ISuite context. The suite attribute model should evaluate to an XSModel object representing the contents of the application schema.
      Parameters:
      testContext - The test (set) context.
    • setSchemaModel

      public void setSchemaModel(org.apache.xerces.xs.XSModel xsModel)
      Sets the schema model (intended only to facilitate unit testing).
      Parameters:
      xsModel - An XSModel object representing an XML Schema.