public class GetCapabilitiesTests extends CommonFixture
GetCapabilities request. This
request implements the abstract getCapabilities operation defined in
the OGCWebService interface (OGC 06-121r9, Figure C.2).
The KVP syntax must be supported; this encoding is generally used with the GET method but may also be used with the POST method. The media type of a KVP request entity is "application/x-www-form-urlencoded".
Sources
atomSchema, client, cswCapabilities, cswSchema, request, response, ROOT_PKG_PATH, SCHEMATRON_ATOM| Constructor and Description |
|---|
GetCapabilitiesTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
findServiceEndpoint()
Finds the GET method endpoint for the GetCapabilities request in the
capabilities document.
|
void |
getCapabilitiesBySection()
[Test] Verifies that a request for a part of a capabilities document
produces the expected response entity.
|
void |
getCapabilitiesFromBaseURL()
[Test] Attempts to retrieve the capabilities document from the base URL
(endpoint for GetCapabilities via GET).
|
void |
getCapabilitiesFromBaseURLAsXML()
[Test] Attempts to retrieve the capabilities document from the base URL
(endpoint for GetCapabilities via GET).
|
void |
getCapabilitiesInSupportedFormat()
[Test] Verifies that a request for a supported representation (format) of
a capabilities document produces the expected response entity.
|
void |
getCapabilitiesInUnsupportedFormat()
[Test] Verifies that a request for a known but unsupported representation
(format) of a capabilities document produces an exception report
containing the exception code "InvalidParameterValue".
|
void |
getCapabilitiesIsMissingServiceParam()
[Test] If the required "service" parameter is missing, an exception
report with status code 400 must be produced.
|
void |
getCapabilitiesWithInvalidParamValue()
[Test] Query parameter values must be handled in a case-sensitive manner.
|
void |
getCapabilitiesWithMixedCaseParamNames()
[Test] Query parameter names must be handled in a case-insensitive
manner.
|
void |
getCapabilitiesWithUnsupportedVersion()
[Test] Verifies that a request for an unsupported version of a
capabilities document produces an exception report containing the
exception code "VersionNegotiationFailed".
|
void |
getFullCapabilitiesAcceptVersion3()
[Test] Verifies that the content of a complete service capabilities
document is schema-valid.
|
void |
setServiceCapabilities(Document cswCapabilities)
Sets the service capabilities document.
|
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixturepublic void findServiceEndpoint()
public void setServiceCapabilities(Document cswCapabilities)
cswCapabilities - A Document node representing a service description
(csw:Capabilities).public void getFullCapabilitiesAcceptVersion3()
The Accept request header expresses a preference for a
representation of type
"application/xml".
public void getCapabilitiesFromBaseURL()
public void getCapabilitiesFromBaseURLAsXML()
Accept: text/html; q=0.5, application/xmlThe response shall include a complete XML representation.
public void getCapabilitiesWithMixedCaseParamNames()
public void getCapabilitiesWithInvalidParamValue()
request=getCapabilities; an exception
report is expected in response with OGC exception code
"InvalidParameterValue" and status code
400.public void getCapabilitiesIsMissingServiceParam()
public void getCapabilitiesWithUnsupportedVersion()
public void getCapabilitiesInUnsupportedFormat()
public void getCapabilitiesInSupportedFormat()
public void getCapabilitiesBySection()
The possible section names are listed below.
Copyright © 2018 Open Geospatial Consortium. All rights reserved.