public class StoredQueryTests extends BaseFixture
docBuilder, featureInfo, featureTypes, reqEntity, rspEntity, supportedBindings, TNS_PREFIX, wfsClient, wfsMetadata
Constructor and Description |
---|
StoredQueryTests() |
Modifier and Type | Method and Description |
---|---|
void |
buildGetFeatureRequestEntity()
Builds a DOM Document representing a GetFeature request entity that
contains no query expressions.
|
(package private) NodeList |
executeGetFeatureByType(ProtocolBinding binding,
QName featureType)
Submits a request to execute the
GetFeatureByType stored
query. |
void |
invokeGetFeatureById_unknownID(ProtocolBinding binding)
[
Test ] Invoking the GetFeatureById query with an
id parameter value that does not match any feature should produce
an error response with status code 404 (Not Found) or 403 (Forbidden). |
void |
invokeGetFeatureById(ProtocolBinding binding)
[
Test ] Invoking the GetFeatureById query with a known
feature identifier should produce the matching feature representation
(@gml:id) as the response entity. |
void |
invokeGetFeatureByType(ProtocolBinding binding)
[
Test ] Invoking the GetFeatureByType query should produce
a result set containing feature members of the specified type. |
void |
setupClassFixture(org.testng.ITestContext testContext)
Retrieves the (pre-compiled) WFS schema from the suite fixture.
|
void |
unknownQueryIdentifier(ProtocolBinding binding)
[
Test ] If no stored query matches the given identifier then an
exception report with exception code "InvalidParameterValue" is expected. |
addAttributesOnTestFailure, allProtocolsAndFeatureTypes, bindingAndAvailFeatureTypeProductSet, extractBodyAsDocument, getFeatureTypes, getInstantiatedFeatureTypes, getProtocolBindings, initBaseFixture, initParser
public void setupClassFixture(org.testng.ITestContext testContext)
testContext
- The test (group) context.public void buildGetFeatureRequestEntity()
public void unknownQueryIdentifier(ProtocolBinding binding)
Test
] If no stored query matches the given identifier then an
exception report with exception code "InvalidParameterValue" is expected.binding
- The ProtocolBinding to use.public void invokeGetFeatureById_unknownID(ProtocolBinding binding)
Test
] Invoking the GetFeatureById
query with an
id
parameter value that does not match any feature should produce
an error response with status code 404 (Not Found) or 403 (Forbidden).
Clause 11.4 stipulates that "In the event that a web feature service
encounters an error processing a GetFeature request, it shall raise an
OperationProcessingFailed exception as described in 7.5." In Table D.2
this exception code is mapped to status code 403 for some reason.binding
- The ProtocolBinding to use.public void invokeGetFeatureByType(ProtocolBinding binding)
Test
] Invoking the GetFeatureByType
query should produce
a result set containing feature members of the specified type. However,
instances need not exist for every supported feature type.
This test is primarily intended to acquire feature identifiers needed to
test the mandatory stored query GetFeatureById
.binding
- The ProtocolBinding to use.public void invokeGetFeatureById(ProtocolBinding binding)
Test
] Invoking the GetFeatureById
query with a known
feature identifier should produce the matching feature representation
(@gml:id) as the response entity. If there is no matching feature, an
error response with a status code 404 (Not Found) is expected.binding
- The ProtocolBinding to use.NodeList executeGetFeatureByType(ProtocolBinding binding, QName featureType)
GetFeatureByType
stored
query.binding
- The ProtocolBinding (request encoding) to use.featureType
- A QName specifying the feature type name.Copyright © 2013. All Rights Reserved.