Class GeometryComponentTests
java.lang.Object
org.opengis.cite.iso19136.general.SchemaModelFixture
org.opengis.cite.iso19136.components.GeometryComponentTests
Verifies schema components that define geometry and geometry property types. These test
methods belong to the "geometry" group.
A geometry type must be declared as a global element that can substitute for
gml:AbstractGeometry
; its content model must be derived from
gml:AbstractGeometryType
. A geometry property type may restrict
gml:GeometryPropertyType or reflect the content model of gml:AssociationRoleType.
Sources
- ISO 19136:2007, cl. 10: GML schema - geometric primitives
- ISO 19136:2007, cl. 11: GML schema - geometric complex, geometric composites and geometric aggregates
- ISO 19136:2007, cl. 21.4: Schemas defining Spatial Geometries
- ISO 19136:2007, cl. A.1.5: GML application schemas defining Spatial Geometries
-
Field Summary
Fields inherited from class org.opengis.cite.iso19136.general.SchemaModelFixture
gmlObjects, model, schemaInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hasGeometryComponents
(org.testng.ITestContext testContext) Determines if the application schema includes any geometry-related components (elements or type definitions).void
[Test
] All geometry types (elements) declared in an application schema must substitute forgml:AbstractGeometry
.void
[Test
] The value of a geometry property is an element substitutable for gml:AbstractGeometry.Methods inherited from class org.opengis.cite.iso19136.general.SchemaModelFixture
initSchemaModelFixture, setSchemaModel
-
Constructor Details
-
GeometryComponentTests
public GeometryComponentTests()
-
-
Method Details
-
hasGeometryComponents
@BeforeTest public void hasGeometryComponents(org.testng.ITestContext testContext) Determines if the application schema includes any geometry-related components (elements or type definitions). If not, all tests in this group are skipped.- Parameters:
testContext
- The test (set) context.
-
substitutesForGMLGeometry
public void substitutesForGMLGeometry()[Test
] All geometry types (elements) declared in an application schema must substitute forgml:AbstractGeometry
.- See Also:
-
- "ISO 19136:2007, cl. 21.4.2.1: User-defined Geometry Types"
-
validateImplicitGeometryProperty
public void validateImplicitGeometryProperty()[Test
] The value of a geometry property is an element substitutable for gml:AbstractGeometry. Geometry properties may be defined explicitly (based on a pre-defined GML geometry property type) or implicitly by mimicking the property type content model.Sources
- ISO 19136:2007, A.1.1.10: Spatial geometry properties
- ISO 19136:2007, cl. 9.5: Geometry Properties
- ISO 19136:2007, cl. 21.4.2.2: User-defined Geometry Property Types
-