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.
Sources
| Modifier and Type | Field and Description |
|---|---|
static String |
OPENSEARCH_CONSTRAINT |
atomSchema, client, cswCapabilities, cswSchema, request, response, ROOT_PKG_PATH, SCHEMATRON_ATOM| Constructor and Description |
|---|
OpenSearchDescriptionTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
getOpenSearchDescriptionFromCapabilities()
[Test] Attempts to retrieve an OpenSearch description document using the
URI presented in the capabilities document as the value of the
"OpenSearchDescriptionDocument" constraint.
|
void |
initFixture(org.testng.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.
|
void |
validOpenSearchDescription()
[Test] Validates the OpenSearch description document obtained from the
IUT.
|
buildGetRequest, clearMessages, getResponseEntityAsDocument, initCommonFixturepublic static final String OPENSEARCH_CONSTRAINT
public void initFixture(org.testng.ITestContext testContext)
/org/opengis/cite/cat30/rnc/osd-1.1-draft5.rnctestContext - The test context containing various suite attributes.public void preferOpenSearchDescription()
Accept: application/xml; q=0.5, application/opensearchdescription+xml
public void validOpenSearchDescription()
throws SAXException,
IOException
SAXException - If the document cannot be read.IOException - If an I/O error occurs while trying to access the
document.public void getOpenSearchDescriptionFromCapabilities()
Copyright © 2018 Open Geospatial Consortium. All rights reserved.