public class CommonFixture extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CommonFixture.Input |
class |
CommonFixture.Output |
class |
CommonFixture.Type |
| Modifier and Type | Field and Description |
|---|---|
protected String |
CONTENT_ENCODING_PROPERTY_KEY |
protected String |
CONTENT_MEDIA_TYPE_PROPERTY_KEY |
protected String |
CONTENT_SCHEMA_PROPERTY_KEY |
protected String |
CONTENT_TYPE |
protected int |
limit |
protected org.apache.http.HttpRequest |
reqEntity
A String representing the request.
|
protected io.restassured.filter.log.RequestLoggingFilter |
requestLoggingFilter |
protected io.restassured.filter.log.ResponseLoggingFilter |
responseLoggingFilter |
protected URI |
rootUri |
protected Object |
rspEntity
An Object representing the content of the response message.
|
protected URL |
specURL |
protected boolean |
testAllProcesses |
| Constructor and Description |
|---|
CommonFixture() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributesOnTestFailure(org.testng.ITestResult result)
Augments the test result with supplementary attributes in the event that a test
method failed.
|
protected void |
addServerUnderTest(org.openapi4j.parser.model.v3.OpenApi3 openApi3) |
protected void |
checkHtmlConfClass(String uri)
Try to implement testing for A.5.
|
void |
clearMessages() |
protected CommonFixture.Input |
createInput(com.fasterxml.jackson.databind.JsonNode schemaNode,
String id) |
protected CommonFixture.Output |
createOutput(com.fasterxml.jackson.databind.JsonNode schemaNode,
String id) |
String |
getRequest() |
String |
getResponse() |
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.
|
protected String |
printResults(org.openapi4j.core.validation.ValidationResults validationResults) |
protected boolean |
validateResponseAgainstSchema(String urlSchema,
String body) |
protected io.restassured.filter.log.RequestLoggingFilter requestLoggingFilter
protected io.restassured.filter.log.ResponseLoggingFilter responseLoggingFilter
protected URL specURL
protected URI rootUri
protected int limit
protected boolean testAllProcesses
protected org.apache.http.HttpRequest reqEntity
protected Object rspEntity
protected final String CONTENT_TYPE
protected final String CONTENT_MEDIA_TYPE_PROPERTY_KEY
protected final String CONTENT_SCHEMA_PROPERTY_KEY
protected final String CONTENT_ENCODING_PROPERTY_KEY
public void initCommonFixture(org.testng.ITestContext testContext)
testContext - The test context that contains all the information for a test
run, including suite attributes.public void clearMessages()
public String getRequest()
public String getResponse()
protected io.restassured.specification.RequestSpecification init()
protected boolean validateResponseAgainstSchema(String urlSchema, String body)
protected void checkHtmlConfClass(String uri)
protected String printResults(org.openapi4j.core.validation.ValidationResults validationResults)
protected void addServerUnderTest(org.openapi4j.parser.model.v3.OpenApi3 openApi3)
protected CommonFixture.Input createInput(com.fasterxml.jackson.databind.JsonNode schemaNode, String id)
protected CommonFixture.Output createOutput(com.fasterxml.jackson.databind.JsonNode schemaNode, String id)
public void addAttributesOnTestFailure(org.testng.ITestResult result)
result - A description of the test result.Copyright © 2024 Open Geospatial Consortium. All rights reserved.