public class OGCWebServiceTests extends CommonFixture
Provides tests that apply to the OGCWebService interface defined
in the common service model (OGC 06-121r9, Figure C.2) as adapted for
Catalogue 3.0 implementations. The following service requests are covered:
client, ROOT_PKG_PATH| Constructor and Description |
|---|
OGCWebServiceTests() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getFullCapabilities_v3()
[Test] Verifies that the content of a complete service capabilities
document is schema-valid.
|
void |
getRecordById_noMatchingRecord()
[Test] Verifies that a request for a record by identifier produces a
response with status code 404 (Not Found) if no matching resource is
found.
|
void |
initOGCWebServiceTests(ITestContext testContext)
Initializes the test fixture with the following items:
CSW message schema (obtained from the suite attribute
SuiteAttribute.CSW_SCHEMA, which should
evaluate to a thread-safe Schema object).
service capabilities document (obtained from the suite attribute
SuiteAttribute.TEST_SUBJECT, which should
evaluate to a DOM Document node).
|
void |
setServiceCapabilities(Document cswCapabilities)
Sets the service capabilities document.
|
void |
verifyTestSubject(ITestContext testContext)
Verifies that a service capabilities document was obtained and that the
implementation under test is available.
|
initCommonFixturepublic void verifyTestSubject(ITestContext testContext)
testContext - Information about the pending test run.public void initOGCWebServiceTests(ITestContext testContext)
SuiteAttribute.CSW_SCHEMA, which should
evaluate to a thread-safe Schema object).SuiteAttribute.TEST_SUBJECT, which should
evaluate to a DOM Document node).testContext - The test context containing various suite attributes.public void setServiceCapabilities(Document cswCapabilities)
cswCapabilities - A Document node representing a service description
(csw:Capabilities).public void getFullCapabilities_v3()
The Accept request header expresses a preference for a
representation of type
"application/xml".
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 getRecordById_noMatchingRecord()
Copyright © 2015 Open Geospatial Consortium. All rights reserved.