Class AbstractBaseGetTileFixture
java.lang.Object
org.opengeospatial.cite.wmts10.ets.testsuite.AbstractBaseGetFixture
org.opengeospatial.cite.wmts10.ets.testsuite.gettile.AbstractBaseGetTileFixture
- Direct Known Subclasses:
GetTileCachingInfo,GetTileOfferings,GetTileParametersKvp,GetTileParametersRest,GetTileParametersSoap
- Author:
- Lyn Goltz (original), Jim Beatty (modified/fixed May/Jun/Jul-2017 for WMS and/or WMTS)
-
Field Summary
Fields inherited from class org.opengeospatial.cite.wmts10.ets.testsuite.AbstractBaseGetFixture
docBuilder, layerInfo, NS_BINDINGS, reqEntity, rspEntity, wmtsCapabilities, wmtsClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds a {WmtsKvpRequest} representing a GetTile request.voidsetResultDirectory(org.testng.ITestContext testContext) protected voidstoreResponseImage(jakarta.ws.rs.core.Response rsp, String testGroup, String testName, String requestFormat) Stores the image in a the output directory of the testsuite: testSUiteOutputDirectory/testGroup/testName.extensionprotected voidstoreSoapResponseImage(jakarta.xml.soap.SOAPMessage soapResponse, String testGroup, String testName, String requestFormat) voidMethods inherited from class org.opengeospatial.cite.wmts10.ets.testsuite.AbstractBaseGetFixture
addAttributesOnTestFailure, addAttributesOnTestSuccess, buildGetCapabilitiesResponse, initBaseFixture, initParser, setWmtsClient
-
Constructor Details
-
AbstractBaseGetTileFixture
public AbstractBaseGetTileFixture()
-
-
Method Details
-
buildGetTileRequest
Builds a {WmtsKvpRequest} representing a GetTile request.- Throws:
XPathExpressionException- in case bad XPath
-
setResultDirectory
@BeforeClass public void setResultDirectory(org.testng.ITestContext testContext) -
verifyGetTileSupported
public void verifyGetTileSupported() -
storeResponseImage
protected void storeResponseImage(jakarta.ws.rs.core.Response rsp, String testGroup, String testName, String requestFormat) Stores the image in a the output directory of the testsuite: testSUiteOutputDirectory/testGroup/testName.extension- Parameters:
rsp- containing the image, rsp.getEntityInputStream() is used to retrieve the content as stream, nevernulltestGroup- name of the test group (will be the name of the directory to create), nevernulltestName- name of the test (will be the name of the file to create), nevernullrequestFormat- the mime type of the image, nevernull
-
storeSoapResponseImage
-