Class ApiSteps
- java.lang.Object
-
- de.telekom.test.bddwebapp.api.steps.ApiSteps
-
- All Implemented Interfaces:
RestAssuredSteps
public abstract class ApiSteps extends Object implements RestAssuredSteps
Abstract steps class for api tests.- Author:
- Daniel Keiss <daniel.keiss@telekom.de>
Copyright (c) 2022 Daniel Keiss, Deutsche Telekom IT GmbH This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScenarioInteractionscenarioInteraction-
Fields inherited from interface de.telekom.test.bddwebapp.api.steps.RestAssuredSteps
REQUEST_INTERACTION_KEY, RESPONSE_INTERACTION_KEY
-
-
Constructor Summary
Constructors Constructor Description ApiSteps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearRequest()io.restassured.specification.RequestSpecificationrecallRequest()io.restassured.response.ResponserecallResponse()Recall the current response from story interaction.voidrememberRequest(io.restassured.specification.RequestSpecification requestSpecification)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.telekom.test.bddwebapp.api.steps.RestAssuredSteps
baseUri, createRequest, createRequestWithBaseUriAndProxy, createRequestWithJsonConfig, determineStandardPortForScheme, jsonConfig, proxy, proxy, recallResponseAsMap
-
-
-
-
Field Detail
-
scenarioInteraction
@Autowired protected ScenarioInteraction scenarioInteraction
-
-
Method Detail
-
clearRequest
public void clearRequest()
-
recallRequest
public io.restassured.specification.RequestSpecification recallRequest()
- Specified by:
recallRequestin interfaceRestAssuredSteps
-
rememberRequest
public void rememberRequest(io.restassured.specification.RequestSpecification requestSpecification)
- Specified by:
rememberRequestin interfaceRestAssuredSteps
-
recallResponse
public io.restassured.response.Response recallResponse()
Description copied from interface:RestAssuredStepsRecall the current response from story interaction. The response is set a RequestInteractionFilter.- Specified by:
recallResponsein interfaceRestAssuredSteps
-
-