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
FieldsModifier and TypeFieldDescription(package private) static final String(package private) static final StringFields inherited from class org.opengis.cite.iso19142.BaseFixture
docBuilder, ETS_PKG, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata, wfsVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks that the content of the WFS capabilities document reflects theSimple WFSconformance class.voidVerifies that the WFS capabilities document is valid with respect to the officialwfs.xsdschema.voidobtainWFSSchema(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.xsdschema.- 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 WFSconformance 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"
-