Class FeatureComponentTests
java.lang.Object
org.opengis.cite.iso19136.general.SchemaModelFixture
org.opengis.cite.iso19136.components.FeatureComponentTests
Verifies schema components that define geographic features and feature collections.
These test methods belong to the "feature" group.
Sources
- ISO 19136:2007, cl. 9: GML schema - features
- ISO 19136:2007, cl. 21.3: Schemas defining Features and Feature Collections
-
Field Summary
Fields inherited from class org.opengis.cite.iso19136.general.SchemaModelFixture
gmlObjects, model, schemaInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
hasFeatureComponents
(org.testng.ITestContext testContext) Determines if the application schema has any components (elements or type definitions) that denote geographic features.void
[Test
] All feature types (elements) declared in an application schema must substitute forgml:AbstractFeature
.void
[Test
] A feature collection has one or more properties of a type that derives by extension fromgml:AbstractFeatureMemberType
.Methods inherited from class org.opengis.cite.iso19136.general.SchemaModelFixture
initSchemaModelFixture, setSchemaModel
-
Constructor Details
-
FeatureComponentTests
public FeatureComponentTests()
-
-
Method Details
-
hasFeatureComponents
@BeforeTest public void hasFeatureComponents(org.testng.ITestContext testContext) Determines if the application schema has any components (elements or type definitions) that denote geographic features. If not, all tests in this group are skipped. A geographic feature or feature collection must be declared as a global element that can substitute forgml:AbstractFeature
; its content model must be derived fromgml:AbstractFeatureType
.- Parameters:
testContext
- The test (set) context.
-
substitutesForAbstractFeature
public void substitutesForAbstractFeature()[Test
] All feature types (elements) declared in an application schema must substitute forgml:AbstractFeature
.- See Also:
-
- "ISO 19136:2007, cl. A.1.1.15: Substitution group of feature elements"
-
verifyFeatureMemberProperties
public void verifyFeatureMemberProperties()[Test
] A feature collection has one or more properties of a type that derives by extension fromgml:AbstractFeatureMemberType
. Such a property type must contain (or refer to) a feature.Sources
- ISO 19136:2007, cl. 9.9: Feature collections
- ISO 19136:2007, cl. A.1.1.16: GML Feature Collections
-