Package org.opengis.cite.iso19142.simple
Class ServiceMetadataTests
java.lang.Object
org.opengis.cite.iso19142.BaseFixture
org.opengis.cite.iso19142.simple.ServiceMetadataTests
Contains tests regarding service metadata resources, especially the content of the WFS
capabilities document. The capabilities document must be well-formed and schema-valid.
-
Field Summary
Modifier and TypeFieldDescription(package private) static final String
(package private) static final String
Fields inherited from class org.opengis.cite.iso19142.BaseFixture
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks that the content of the WFS capabilities document reflects theSimple WFS
conformance class.void
Verifies that the WFS capabilities document is valid with respect to the officialwfs.xsd
schema.void
obtainWFSSchema
(org.testng.ITestContext testContext) Obtains the WFS 2.0 message schema from the test context.Methods inherited from class org.opengis.cite.iso19142.BaseFixture
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser, setWfsClient
-
Field Details
-
ROOT_PKG
- See Also:
-
SIMPLE_WFS_PHASE
- See Also:
-
-
Constructor Details
-
ServiceMetadataTests
public ServiceMetadataTests()
-
-
Method Details
-
obtainWFSSchema
@BeforeClass(alwaysRun=true) public void obtainWFSSchema(org.testng.ITestContext testContext) Obtains the WFS 2.0 message schema from the test context.- Parameters:
testContext
- The test (group) context.
-
capabilitiesDocIsXmlSchemaValid
public void capabilitiesDocIsXmlSchemaValid()Verifies that the WFS capabilities document is valid with respect to the officialwfs.xsd
schema.- See Also:
-
- "ISO 19142:2010, cl. 8.3.2: GetCapabilities - Response"
-
capabilitiesDocCorrespondsToWfsSimple
public void capabilitiesDocCorrespondsToWfsSimple()Checks that the content of the WFS capabilities document reflects theSimple WFS
conformance class. The applicable rules are incorporated into the "SimpleWFSPhase" phase of the Schematron schemawfs-capabilities-2.0.sch
.- See Also:
-
- "ISO 19142:2010, cl. A.1.1: Simple WFS"
- "ISO 19142:2010, cl. A.2.23: Declaring conformance"
-