Class BaseGetMapFixture
java.lang.Object
de.latlon.ets.wms13.core.dgiwg.testsuite.AbstractBaseGetFixture
de.latlon.ets.wms13.core.dgiwg.testsuite.getmap.BaseGetMapFixture
- Direct Known Subclasses:
GetMapBlankExceptionsTest,GetMapDimensionsTest,GetMapInImageExceptionsTest,GetMapLayerCrsTest,GetMapMultiDimensionalDataTest,GetMapOutputFormatTest,GetMapRequestParametersTest,GetMapTransparencyTest
- Author:
- Lyn Goltz
-
Field Summary
FieldsFields inherited from class de.latlon.ets.wms13.core.dgiwg.testsuite.AbstractBaseGetFixture
docBuilder, layerInfo, NS_BINDINGS, reqEntity, rspEntity, wmsCapabilities, wmsClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds aWmsKvpRequestrepresenting a GetMap request.protected StringIf an image format supporting transparency is not supported by the WMS aSkipExceptionis thrown.(package private) StringretrieveSessionDir(org.testng.ITestContext testContext) Gets the location of the output directory from the test run context.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.extensionMethods inherited from class de.latlon.ets.wms13.core.dgiwg.testsuite.AbstractBaseGetFixture
addAttributesOnTestFailure, addAttributesOnTestSuccess, initBaseFixture, initParser, setWmsClient
-
Field Details
-
SUBDIRECTORY
- See Also:
-
-
Constructor Details
-
BaseGetMapFixture
public BaseGetMapFixture()
-
-
Method Details
-
buildGetMapRequest
@BeforeClass public void buildGetMapRequest()Builds aWmsKvpRequestrepresenting a GetMap request. -
setResultDirectory
@BeforeClass public void setResultDirectory(org.testng.ITestContext testContext) -
findRequiredImageFormatWithTransparencySupport
If an image format supporting transparency is not supported by the WMS aSkipExceptionis thrown.- Returns:
- image format supporting transparency, never
null
-
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
-
retrieveSessionDir
Gets the location of the output directory from the test run context.- Parameters:
testContext- Information about a test run.- Returns:
- A String that identifies the directory containing test run results.
-