Package org.opengis.cite.ogcapiedr10
Class CommonFixture
java.lang.Object
org.opengis.cite.ogcapiedr10.CommonFixture
- Direct Known Subclasses:
ApiDefinition
,CollectionsResponse
,CommonDataFixture
,Conformance
,EDRGeoJSONEncoding
,GeoJSONEncoding
,JSONEncoding
,LandingPage
,QueryCollections
A supporting base class that sets up a common test fixture. These configuration methods
are invoked before those defined in a subclass.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected String
constructDateTimeValue
(String input) protected io.restassured.response.Response
getCollectionResponse
(String collectionId) protected io.restassured.specification.RequestSpecification
init()
void
initCommonFixture
(org.testng.ITestContext testContext) Initializes the common test fixture with a client component for interacting with HTTP endpoints.
-
Field Details
-
requestLoggingFilter
protected io.restassured.filter.log.RequestLoggingFilter requestLoggingFilter -
responseLoggingFilter
protected io.restassured.filter.log.ResponseLoggingFilter responseLoggingFilter -
rootUri
-
apiDefUri
-
testingWktPOINT
-
geoJSONTestingCollection
-
DEFAULT_BUFFER_SIZE
protected final int DEFAULT_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
CommonFixture
public CommonFixture()
-
-
Method Details
-
initCommonFixture
@BeforeClass public void initCommonFixture(org.testng.ITestContext testContext) Initializes the common test fixture with a client component for interacting with HTTP endpoints.- Parameters:
testContext
- The test context that contains all the information for a test run, including suite attributes.
-
clearMessages
@BeforeMethod public void clearMessages() -
getRequest
-
getResponse
-
init
protected io.restassured.specification.RequestSpecification init() -
constructDateTimeValue
- Throws:
Exception
-
convertInputStreamToString
- Throws:
IOException
-
getCollectionResponse
-