Class SchemaModelFixture
java.lang.Object
org.opengis.cite.iso19136.general.SchemaModelFixture
- Direct Known Subclasses:
ComplexPropertyTests
,FeatureComponentTests
,GeometryComponentTests
,LexicalConventionTests
,ModelAndSyntaxTests
,TemporalComponentTests
,TopologyComponentTests
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
Modifier and TypeFieldDescriptionprotected 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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).
-
Field Details
-
model
protected org.apache.xerces.xs.XSModel modelAn XSModel object representing an XML Schema resource. -
schemaInfo
Provides information about the types of geographic objects defined in the application schema. -
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 attributemodel
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.
-