Class TopologyComponentTests

java.lang.Object
org.opengis.cite.iso19136.general.SchemaModelFixture
org.opengis.cite.iso19136.components.TopologyComponentTests

public class TopologyComponentTests extends SchemaModelFixture
Verifies schema components that define topology and topology property types. These test methods belong to the "topology" group. A topology type must be declared as a global element that can substitute for gml:AbstractTopology; its content model must be derived from gml:AbstractTopologyType. A topology property type may restrict gml:TopoPrimitiveMemberType or reflect the content model of gml:AssociationRoleType.

Sources

  • ISO 19136:2007, cl. 13: GML schema - topology
  • ISO 19136:2007, cl. 21.5 Schemas defining Spatial Topologies
  • ISO 19136:2007, cl. A.1.6: GML application schemas defining Spatial Topologies
  • Constructor Details

    • TopologyComponentTests

      public TopologyComponentTests()
  • Method Details

    • hasTopologyComponents

      @BeforeTest public void hasTopologyComponents(org.testng.ITestContext testContext)
      Determines if the application schema includes any topology-related components (elements or type definitions). If not, all tests in this group are skipped.
      Parameters:
      testContext - The test (set) context.
    • substitutesForGMLTopology

      public void substitutesForGMLTopology()
      [Test] All topology types (elements) declared in an application schema must substitute for gml:AbstractTopology.
      See Also:
      • "ISO 19136:2007, cl. 21.5.2.1: User-defined Topology Types"
    • validateImplicitTopologyProperty

      public void validateImplicitTopologyProperty()
      [Test] The value of a topology property is an element substitutable for gml:AbstractTopology. Topology properties may be defined explicitly (based on a pre-defined GML topology property type) or implicitly by mimicking the GML property type content model.

      Sources

      • ISO 19136:2007, cl. 9.6: Topology Properties
      • ISO 19136:2007, A.1.1.11: Spatial topology properties
      • ISO 19136:2007, cl. 21.5.2.2: User-defined Topology Property Types