Class TemporalComponentTests
java.lang.Object
org.opengis.cite.iso19136.general.SchemaModelFixture
org.opengis.cite.iso19136.components.TemporalComponentTests
Verifies schema components that define temporal elements and temporal property types.
These test methods belong to the "time" group.
A temporal type must be declared as a global element that can substitute for
gml:AbstractTimeObject
, which acts as the head of a substitution group for all
temporal primitives and complexes; the content model must be derived from
gml:AbstractTimeObjectType
.
A temporal feature property may make use of an existing GML temporal property type (see
ISO 19136, Table 6) or reflect the content model of gml:AssociationRoleType.
Sources
- ISO 19136:2007, cl. 14: GML schema – temporal information and dynamic features
- ISO 19136:2007, cl. 21.6 Schemas defining Time
-
Field Summary
Fields inherited from class org.opengis.cite.iso19136.general.SchemaModelFixture
gmlObjects, model, schemaInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hasTemporalComponents
(org.testng.ITestContext testContext) Determines if the application schema contains any temporal components (elements or type definitions).void
[Test
] All temporal types (elements) declared in an application schema must substitute forgml:AbstractTimeObject
.void
[Test
] The value of a temporal property is an element substitutable for gml:AbstractTimeObject.Methods inherited from class org.opengis.cite.iso19136.general.SchemaModelFixture
initSchemaModelFixture, setSchemaModel
-
Constructor Details
-
TemporalComponentTests
public TemporalComponentTests()
-
-
Method Details
-
hasTemporalComponents
@BeforeTest public void hasTemporalComponents(org.testng.ITestContext testContext) Determines if the application schema contains any temporal components (elements or type definitions). If not, all tests in this group are skipped.- Parameters:
testContext
- The test (set) context.
-
substitutesForAbstractTimeObject
public void substitutesForAbstractTimeObject()[Test
] All temporal types (elements) declared in an application schema must substitute forgml:AbstractTimeObject
.- See Also:
-
- "ISO 19136:2007, cl. 21.6.2.1: User-defined Temporal Types"
-
validateImplicitTemporalProperty
public void validateImplicitTemporalProperty()[Test
] The value of a temporal property is an element substitutable for gml:AbstractTimeObject. Temporal properties may be defined explicitly (based on a pre-defined GML temporal property type) or implicitly by mimicking the standard GML property type content model.Sources
- ISO 19136:2007, cl. 9.7: Temporal Properties
- ISO 19136:2007, cl. A.1.1.12: Temporal properties
- ISO 19136:2007, cl. 21.6.2.2: User-defined Temporal Property Types
-