Class RestAssuredWebTestClientConfig
java.lang.Object
io.restassured.module.webtestclient.config.RestAssuredWebTestClientConfig
- All Implemented Interfaces:
SpecificationConfig
Main configuration for REST Assured WebTestClient that allows you to configure advanced settings.
Usage example:
RestAssuredWebTestClient.config = new RestAssuredWebTestClientConfig().logConfig(new LogConfig(captor, true));
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new RestAssuredWebTestClientConfig with the default configurations. -
Method Summary
Modifier and TypeMethodDescriptionand()Syntactic sugar.asyncConfig(AsyncConfig asyncConfig) Set the async configclientConfig(ClientConfig clientConfig) config()decoderConfig(io.restassured.config.DecoderConfig decoderConfig) Set the decoder configencoderConfig(io.restassured.config.EncoderConfig encoderConfig) Set the encoder configio.restassured.config.DecoderConfigio.restassured.config.EncoderConfigio.restassured.config.HeaderConfigio.restassured.config.JsonConfigio.restassured.config.LogConfigio.restassured.config.MatcherConfigio.restassured.config.MultiPartConfigio.restassured.config.ObjectMapperConfigio.restassured.config.ParamConfigio.restassured.config.SessionConfigio.restassured.config.XmlConfigheaderConfig(io.restassured.config.HeaderConfig headerConfig) Set the header configbooleanjsonConfig(io.restassured.config.JsonConfig jsonConfig) Set the Json config.logConfig(io.restassured.config.LogConfig logConfig) Set the Log config.matcherConfig(io.restassured.config.MatcherConfig matcherConfig) Set the matcher config.multiPartConfig(io.restassured.config.MultiPartConfig multiPartConfig) Set the multi-part configobjectMapperConfig(io.restassured.config.ObjectMapperConfig objectMapperConfig) Set the object mapper config.paramConfig(io.restassured.config.ParamConfig paramConfig) paramConfig(WebTestClientParamConfig paramConfig) Set the parameter configsessionConfig(io.restassured.config.SessionConfig sessionConfig) Set the session config.set()Syntactic sugar.webTestClientConfig(WebTestClientConfig webTestClientConfig) Set the webTestClient configwith()Syntactic sugar.xmlConfig(io.restassured.config.XmlConfig xmlConfig) Set the Xml config.
-
Constructor Details
-
RestAssuredWebTestClientConfig
public RestAssuredWebTestClientConfig()Create a new RestAssuredWebTestClientConfig with the default configurations.
-
-
Method Details
-
newConfig
- Returns:
- A static way to create a new RestAssuredWebTestClientConfiguration instance without calling "new" explicitly. Mainly for syntactic sugar.
-
config
- Returns:
- A static way to create a new RestAssuredWebTestClientConfiguration instance without calling "new" explicitly. Mainly for syntactic sugar.
-
and
Syntactic sugar.- Returns:
- The same RestAssuredWebTestClientConfig instance.
-
set
Syntactic sugar.- Returns:
- The same RestAssuredWebTestClientConfig instance.
-
with
Syntactic sugar.- Returns:
- The same RestAssuredWebTestClientConfig instance.
-
isUserConfigured
public boolean isUserConfigured()- Specified by:
isUserConfiguredin interfaceSpecificationConfig
-
getDecoderConfig
public io.restassured.config.DecoderConfig getDecoderConfig()- Specified by:
getDecoderConfigin interfaceSpecificationConfig- Returns:
- The DecoderConfig
-
decoderConfig
public RestAssuredWebTestClientConfig decoderConfig(io.restassured.config.DecoderConfig decoderConfig) Set the decoder config- Specified by:
decoderConfigin interfaceSpecificationConfig- Parameters:
decoderConfig- TheDecoderConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getEncoderConfig
public io.restassured.config.EncoderConfig getEncoderConfig()- Specified by:
getEncoderConfigin interfaceSpecificationConfig- Returns:
- The EncoderConfig
-
encoderConfig
public RestAssuredWebTestClientConfig encoderConfig(io.restassured.config.EncoderConfig encoderConfig) Set the encoder config- Specified by:
encoderConfigin interfaceSpecificationConfig- Parameters:
encoderConfig- TheEncoderConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getHeaderConfig
public io.restassured.config.HeaderConfig getHeaderConfig()- Specified by:
getHeaderConfigin interfaceSpecificationConfig- Returns:
- The Header Config
-
headerConfig
Set the header config- Specified by:
headerConfigin interfaceSpecificationConfig- Parameters:
headerConfig- TheHeaderConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getJsonConfig
public io.restassured.config.JsonConfig getJsonConfig()- Specified by:
getJsonConfigin interfaceSpecificationConfig- Returns:
- The JsonPath Config
-
jsonConfig
Set the Json config.- Specified by:
jsonConfigin interfaceSpecificationConfig- Parameters:
jsonConfig- TheJsonConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getLogConfig
public io.restassured.config.LogConfig getLogConfig()- Specified by:
getLogConfigin interfaceSpecificationConfig- Returns:
- The LogConfig
-
logConfig
Set the Log config.- Specified by:
logConfigin interfaceSpecificationConfig- Parameters:
logConfig- TheLogConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getObjectMapperConfig
public io.restassured.config.ObjectMapperConfig getObjectMapperConfig()- Specified by:
getObjectMapperConfigin interfaceSpecificationConfig- Returns:
- The ObjectMapperConfig
-
objectMapperConfig
public RestAssuredWebTestClientConfig objectMapperConfig(io.restassured.config.ObjectMapperConfig objectMapperConfig) Set the object mapper config.- Specified by:
objectMapperConfigin interfaceSpecificationConfig- Parameters:
objectMapperConfig- TheObjectMapperConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getSessionConfig
public io.restassured.config.SessionConfig getSessionConfig()- Specified by:
getSessionConfigin interfaceSpecificationConfig- Returns:
- The SessionConfig
-
sessionConfig
public RestAssuredWebTestClientConfig sessionConfig(io.restassured.config.SessionConfig sessionConfig) Set the session config.- Specified by:
sessionConfigin interfaceSpecificationConfig- Parameters:
sessionConfig- TheSessionConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getXmlConfig
public io.restassured.config.XmlConfig getXmlConfig()- Specified by:
getXmlConfigin interfaceSpecificationConfig- Returns:
- The Xml Config
-
xmlConfig
Set the Xml config.- Specified by:
xmlConfigin interfaceSpecificationConfig- Parameters:
xmlConfig- TheXmlConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getAsyncConfig
- Specified by:
getAsyncConfigin interfaceSpecificationConfig- Returns:
- The WebTestClientAsync Config
-
asyncConfig
Set the async config- Specified by:
asyncConfigin interfaceSpecificationConfig- Parameters:
asyncConfig- TheAsyncConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getMultiPartConfig
public io.restassured.config.MultiPartConfig getMultiPartConfig()- Specified by:
getMultiPartConfigin interfaceSpecificationConfig- Returns:
- The MultiPart Config
-
multiPartConfig
public RestAssuredWebTestClientConfig multiPartConfig(io.restassured.config.MultiPartConfig multiPartConfig) Set the multi-part config- Specified by:
multiPartConfigin interfaceSpecificationConfig- Parameters:
multiPartConfig- TheMultiPartConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getClientConfig
- Specified by:
getClientConfigin interfaceSpecificationConfig
-
clientConfig
- Specified by:
clientConfigin interfaceSpecificationConfig
-
webTestClientConfig
Set the webTestClient config- Parameters:
webTestClientConfig- TheWebTestClientConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getParamConfig
public io.restassured.config.ParamConfig getParamConfig()- Specified by:
getParamConfigin interfaceSpecificationConfig- Returns:
- The Param Config
-
getWebTestClientParamConfig
-
paramConfig
- Specified by:
paramConfigin interfaceSpecificationConfig
-
paramConfig
Set the parameter config- Parameters:
paramConfig- TheWebTestClientParamConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-
getWebTestClientConfig
- Returns:
- The WebTestClient Config
-
getMatcherConfig
public io.restassured.config.MatcherConfig getMatcherConfig()- Specified by:
getMatcherConfigin interfaceSpecificationConfig- Returns:
- The MatcherConfig
-
matcherConfig
public RestAssuredWebTestClientConfig matcherConfig(io.restassured.config.MatcherConfig matcherConfig) Set the matcher config.- Specified by:
matcherConfigin interfaceSpecificationConfig- Parameters:
matcherConfig- TheMatcherConfigto set- Returns:
- An updated RestAssuredWebTestClientConfig
-