public class OpenSearchDescriptionTests extends CommonFixture
Accept request
header expresses a preference for any of the following media types:
application/vnd.a9.opensearchdescription+xmlapplication/opensearchdescription+xmlNote: None of the media types listed above appear in the IANA media type registry. Registrations in the standards tree must be approved by the IESG or originate from a recognized standards-related organization (see RFC 6838); third-party registrations are allowed in the vendor tree.
client, ROOT_PKG_PATH| Constructor and Description |
|---|
OpenSearchDescriptionTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkOpenSearchImplementationStatus(ITestContext testContext)
Checks that the capabilities document indicates support for OpenSearch.
|
void |
getOpenSearchDescription()
[Test] Retrieves an OpenSearch description document and validates it.
|
void |
initFixture(ITestContext testContext)
Initializes the test fixture by:
building a Relax NG schema validator for an OpenSearch description
document; the schema resource is located on the classpath at this
location:
/org/opengis/cite/cat30/rnc/osd-1.1-draft5.rnc
extracting the base GetCapabilities URL (for the GET method binding)
from the capabilities document
|
void |
preferOpenSearchDescription()
[Test] Requests an OpenSearch description document as the most preferred
media type.
|
initCommonFixturepublic void checkOpenSearchImplementationStatus(ITestContext testContext)
<OperationsMetadata xmlns="http://www.opengis.net/ows/2.0">
<!-- Operation elements omitted -->
<Constraint name="OpenSearch">
<AllowedValues>
<Value>FALSE</Value>
<Value>TRUE</Value>
</AllowedValues>
<DefaultValue>TRUE</DefaultValue>
<Meaning>Conformance class</Meaning>
</Constraint>
</OperationsMetadata>
testContext - Information about the pending test run.public void initFixture(ITestContext testContext)
/org/opengis/cite/cat30/rnc/osd-1.1-draft5.rnctestContext - The test context containing various suite attributes.public void preferOpenSearchDescription()
public void getOpenSearchDescription()
throws SAXException,
IOException
Accept header indicates a preference for
either of the following media types:
SAXException - If the response entity cannot be parsed.IOException - If an I/O error occurs while trying to access the
service endpoint.Copyright © 2015 Open Geospatial Consortium. All rights reserved.