Class CommonFixture
java.lang.Object
org.opengis.cite.ogcapifeatures10.conformance.CommonFixture
- Direct Known Subclasses:
AbstractBBoxCrs,AbstractFeatureCrs,AbstractFeaturesCrs,ApiDefinition,CommonDataFixture,Conformance,GeneralHttp,LandingPage
A supporting base class that sets up a common test fixture. These configuration methods
are invoked before those defined in a subclass.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.restassured.filter.log.RequestLoggingFilterprotected io.restassured.filter.log.ResponseLoggingFilterprotected URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearMessages.getRequest.getResponse.protected io.restassured.specification.RequestSpecificationinit()init.voidinitCommonFixture(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
-
-
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()clearMessages.
-
getRequest
getRequest.
- Returns:
- a
Stringobject
-
getResponse
getResponse.
- Returns:
- a
Stringobject
-
init
protected io.restassured.specification.RequestSpecification init()init.
- Returns:
- a
RequestSpecificationobject
-