public class RestProblem extends ProblemInfo
servicesToNotMock| Constructor and Description |
|---|
RestProblem(String openApiUrl,
List<String> endpointsToSkip) |
RestProblem(String openApiUrl,
List<String> endpointsToSkip,
String openApiSchema) |
RestProblem(String openApiUrl,
List<String> endpointsToSkip,
String openApiSchema,
List<ExternalService> servicesToNotMock,
List<RestDerivedParam> derivedParams) |
| Modifier and Type | Method and Description |
|---|---|
List<RestDerivedParam> |
getDerivedParams() |
List<String> |
getEndpointsToSkip() |
String |
getOpenApiSchema() |
String |
getOpenApiUrl() |
RestProblem |
withDerivedParams(List<RestDerivedParam> derivedParams) |
RestProblem |
withServicesToNotMock(List<ExternalService> servicesToNotMock) |
getServicesToNotMockpublic RestProblem(String openApiUrl, List<String> endpointsToSkip, String openApiSchema)
public RestProblem(String openApiUrl, List<String> endpointsToSkip, String openApiSchema, List<ExternalService> servicesToNotMock, List<RestDerivedParam> derivedParams)
openApiUrl - Provide the URL of where the OpenAPI schema can be found.endpointsToSkip - When testing a REST API, there might be some endpoints that are not
so important to test.
For example, in Spring, health-check endpoints like "/heapdump"
are not so interesting to test, and they can be very expensive to run.
Here can specify a list of endpoints (as defined in the schema) to skip.openApiSchema - the actual schema, as a string. Note, if this specified, then
openApiUrl must be nullpublic RestProblem withServicesToNotMock(List<ExternalService> servicesToNotMock)
withServicesToNotMock in class ProblemInfopublic RestProblem withDerivedParams(List<RestDerivedParam> derivedParams)
public String getOpenApiUrl()
public String getOpenApiSchema()
public List<RestDerivedParam> getDerivedParams()
Copyright © 2016–2025. All rights reserved.