public class SerenityRest
extends java.lang.Object
Constructor and Description |
---|
SerenityRest() |
Modifier and Type | Method and Description |
---|---|
static io.restassured.response.ValidatableResponse |
and() |
static io.restassured.authentication.AuthenticationScheme |
basic(java.lang.String userName,
java.lang.String password) |
static io.restassured.authentication.AuthenticationScheme |
certificate(java.lang.String certURL,
java.lang.String password) |
static io.restassured.authentication.AuthenticationScheme |
certificate(java.lang.String certURL,
java.lang.String password,
io.restassured.authentication.CertificateAuthSettings certificateAuthSettings) |
static io.restassured.config.RestAssuredConfig |
config() |
static io.restassured.response.Response |
delete() |
static io.restassured.response.Response |
delete(java.lang.String path,
java.util.Map<java.lang.String,?> pathParams) |
static io.restassured.response.Response |
delete(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
delete(java.net.URI uri) |
static io.restassured.response.Response |
delete(java.net.URL url) |
static io.restassured.authentication.AuthenticationScheme |
digest(java.lang.String userName,
java.lang.String password) |
static io.restassured.config.LogConfig |
enableLoggingOfRequestAndResponseIfValidationFails() |
static io.restassured.config.LogConfig |
enableLoggingOfRequestAndResponseIfValidationFails(io.restassured.filter.log.LogDetail logDetail) |
static io.restassured.specification.ResponseSpecification |
expect() |
static java.util.List<io.restassured.filter.Filter> |
filters() |
static java.util.List<io.restassured.filter.Filter> |
filters(io.restassured.filter.Filter filter,
io.restassured.filter.Filter... additionalFilters) |
static java.util.List<io.restassured.filter.Filter> |
filters(java.util.List<io.restassured.filter.Filter> filters) |
static io.restassured.authentication.AuthenticationScheme |
form(java.lang.String userName,
java.lang.String password) |
static io.restassured.authentication.AuthenticationScheme |
form(java.lang.String userName,
java.lang.String password,
io.restassured.authentication.FormAuthConfig config) |
static io.restassured.response.Response |
get() |
static io.restassured.response.Response |
get(java.lang.String path,
java.util.Map<java.lang.String,?> pathParams) |
static io.restassured.response.Response |
get(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
get(java.net.URI uri) |
static io.restassured.response.Response |
get(java.net.URL url) |
static io.restassured.authentication.AuthenticationScheme |
getDefaultAuthentication() |
static java.lang.String |
getDefaultBasePath() |
static io.restassured.config.RestAssuredConfig |
getDefaultConfig() |
static io.restassured.parsing.Parser |
getDefaultParser() |
static int |
getDefaultPort() |
static io.restassured.specification.ProxySpecification |
getDefaultProxy() |
static io.restassured.specification.RequestSpecification |
getDefaultRequestSpecification() |
static io.restassured.specification.ResponseSpecification |
getDefaultResponseSpecification() |
static java.lang.String |
getDefaultRootPath() |
static java.lang.String |
getDefaultSessionId() |
static io.restassured.specification.RequestSpecification |
given() |
static io.restassured.specification.RequestSpecification |
given(io.restassured.specification.RequestSpecification requestSpecification) |
static io.restassured.specification.RequestSender |
given(io.restassured.specification.RequestSpecification request,
io.restassured.specification.ResponseSpecification response) |
static io.restassured.response.Response |
head() |
static io.restassured.response.Response |
head(java.lang.String path,
java.util.Map<java.lang.String,?> pathParams) |
static io.restassured.response.Response |
head(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
head(java.net.URI uri) |
static io.restassured.response.Response |
head(java.net.URL url) |
static boolean |
isUrlEncodingEnabled() |
static io.restassured.config.SSLConfig |
keystore(java.io.File pathToJks,
java.lang.String password) |
static io.restassured.config.SSLConfig |
keystore(java.lang.String password) |
static io.restassured.config.SSLConfig |
keystore(java.lang.String pathToJks,
java.lang.String password) |
static io.restassured.authentication.AuthenticationScheme |
oauth(java.lang.String consumerKey,
java.lang.String consumerSecret,
java.lang.String accessToken,
java.lang.String secretToken) |
static io.restassured.authentication.AuthenticationScheme |
oauth(java.lang.String consumerKey,
java.lang.String consumerSecret,
java.lang.String accessToken,
java.lang.String secretToken,
io.restassured.authentication.OAuthSignature signature) |
static io.restassured.authentication.AuthenticationScheme |
oauth2(java.lang.String accessToken) |
static io.restassured.authentication.AuthenticationScheme |
oauth2(java.lang.String accessToken,
io.restassured.authentication.OAuthSignature signature) |
static io.restassured.mapper.ObjectMapper |
objectMapper(io.restassured.mapper.ObjectMapper objectMapper) |
static io.restassured.response.Response |
options() |
static io.restassured.response.Response |
options(java.lang.String path,
java.util.Map<java.lang.String,?> pathParams) |
static io.restassured.response.Response |
options(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
options(java.net.URI uri) |
static io.restassured.response.Response |
options(java.net.URL url) |
static io.restassured.response.Response |
patch() |
static io.restassured.response.Response |
patch(java.lang.String path,
java.util.Map<java.lang.String,?> pathParams) |
static io.restassured.response.Response |
patch(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
patch(java.net.URI uri) |
static io.restassured.response.Response |
patch(java.net.URL url) |
static io.restassured.response.Response |
post() |
static io.restassured.response.Response |
post(java.lang.String path,
java.util.Map<java.lang.String,?> pathParams) |
static io.restassured.response.Response |
post(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
post(java.net.URI uri) |
static io.restassured.response.Response |
post(java.net.URL url) |
static io.restassured.authentication.PreemptiveAuthProvider |
preemptive() |
static io.restassured.specification.ProxySpecification |
proxy(int port) |
static io.restassured.specification.ProxySpecification |
proxy(io.restassured.specification.ProxySpecification proxySpecification) |
static io.restassured.specification.ProxySpecification |
proxy(java.lang.String host) |
static io.restassured.specification.ProxySpecification |
proxy(java.lang.String host,
int port) |
static io.restassured.specification.ProxySpecification |
proxy(java.lang.String host,
int port,
java.lang.String scheme) |
static io.restassured.specification.ProxySpecification |
proxy(java.net.URI uri) |
static io.restassured.response.Response |
put() |
static io.restassured.response.Response |
put(java.lang.String path,
java.lang.Object... pathParams) |
static io.restassured.response.Response |
put(java.net.URI uri) |
static io.restassured.response.Response |
put(java.net.URL url) |
static void |
registerParser(java.lang.String contentType,
io.restassured.parsing.Parser parser) |
static java.util.List<io.restassured.filter.Filter> |
replaceFiltersWith(io.restassured.filter.Filter filter,
io.restassured.filter.Filter... additionalFilters) |
static java.util.List<io.restassured.filter.Filter> |
replaceFiltersWith(java.util.List<io.restassured.filter.Filter> filters) |
static void |
reset() |
static io.restassured.specification.RequestSpecification |
rest() |
static io.restassured.authentication.AuthenticationScheme |
setDefaultAuthentication(io.restassured.authentication.AuthenticationScheme authentication) |
static java.lang.String |
setDefaultBasePath(java.lang.String basePath) |
static io.restassured.config.RestAssuredConfig |
setDefaultConfig(io.restassured.config.RestAssuredConfig config) |
static io.restassured.parsing.Parser |
setDefaultParser(io.restassured.parsing.Parser defaultParser) |
static int |
setDefaultPort(int port) |
static io.restassured.specification.ProxySpecification |
setDefaultProxy(int port) |
static io.restassured.specification.ProxySpecification |
setDefaultProxy(io.restassured.specification.ProxySpecification proxy) |
static io.restassured.specification.ProxySpecification |
setDefaultProxy(java.lang.String host,
int port) |
static io.restassured.specification.ProxySpecification |
setDefaultProxy(java.lang.String host,
int port,
java.lang.String scheme) |
static io.restassured.specification.ProxySpecification |
setDefaultProxy(java.net.URI uri) |
static io.restassured.specification.RequestSpecification |
setDefaultRequestSpecification(io.restassured.specification.RequestSpecification requestSpecification) |
static io.restassured.specification.ResponseSpecification |
setDefaultResponseSpecification(io.restassured.specification.ResponseSpecification responseSpecification) |
static java.lang.String |
setDefaultRootPath(java.lang.String rootPath) |
static java.lang.String |
setDefaultSessionId(java.lang.String sessionId) |
static boolean |
setUrlEncodingEnabled(boolean urlEncodingEnabled) |
static io.restassured.response.ValidatableResponse |
then() |
static io.restassured.config.SSLConfig |
trustStore(java.security.KeyStore truststore) |
static void |
unregisterParser(java.lang.String contentType) |
static io.restassured.config.SSLConfig |
useRelaxedHTTPSValidation() |
static io.restassured.config.SSLConfig |
useRelaxedHTTPSValidation(java.lang.String protocol) |
static io.restassured.specification.RequestSender |
when() |
static io.restassured.specification.RequestSpecification |
with() |
static java.util.List<io.restassured.specification.Argument> |
withArgs(java.lang.Object firstArgument,
java.lang.Object... additionalArguments) |
static java.util.List<io.restassured.specification.Argument> |
withArguments(java.lang.Object firstArgument,
java.lang.Object... additionalArguments) |
static java.util.List<io.restassured.specification.Argument> |
withNoArgs() |
static java.util.List<io.restassured.specification.Argument> |
withNoArguments() |
public static io.restassured.specification.RequestSpecification rest()
public static io.restassured.response.ValidatableResponse and()
public static io.restassured.response.ValidatableResponse then()
public static java.lang.String setDefaultBasePath(java.lang.String basePath)
public static java.lang.String getDefaultBasePath()
public static int getDefaultPort()
public static int setDefaultPort(int port)
public static boolean isUrlEncodingEnabled()
public static boolean setUrlEncodingEnabled(boolean urlEncodingEnabled)
public static java.lang.String getDefaultRootPath()
public static java.lang.String setDefaultRootPath(java.lang.String rootPath)
public static java.lang.String getDefaultSessionId()
public static java.lang.String setDefaultSessionId(java.lang.String sessionId)
public static io.restassured.authentication.AuthenticationScheme getDefaultAuthentication()
public static io.restassured.authentication.AuthenticationScheme setDefaultAuthentication(io.restassured.authentication.AuthenticationScheme authentication)
public static io.restassured.specification.RequestSpecification getDefaultRequestSpecification()
public static io.restassured.specification.RequestSpecification setDefaultRequestSpecification(io.restassured.specification.RequestSpecification requestSpecification)
public static io.restassured.parsing.Parser getDefaultParser()
public static io.restassured.parsing.Parser setDefaultParser(io.restassured.parsing.Parser defaultParser)
public static io.restassured.specification.ResponseSpecification getDefaultResponseSpecification()
public static io.restassured.specification.ResponseSpecification setDefaultResponseSpecification(io.restassured.specification.ResponseSpecification responseSpecification)
public static void reset()
public static java.util.List<io.restassured.filter.Filter> filters(java.util.List<io.restassured.filter.Filter> filters)
public static java.util.List<io.restassured.filter.Filter> filters(io.restassured.filter.Filter filter, io.restassured.filter.Filter... additionalFilters)
public static java.util.List<io.restassured.filter.Filter> replaceFiltersWith(java.util.List<io.restassured.filter.Filter> filters)
public static java.util.List<io.restassured.filter.Filter> replaceFiltersWith(io.restassured.filter.Filter filter, io.restassured.filter.Filter... additionalFilters)
public static java.util.List<io.restassured.filter.Filter> filters()
public static io.restassured.mapper.ObjectMapper objectMapper(io.restassured.mapper.ObjectMapper objectMapper)
public static io.restassured.specification.ResponseSpecification expect()
public static io.restassured.specification.RequestSpecification with()
public static java.util.List<io.restassured.specification.Argument> withArguments(java.lang.Object firstArgument, java.lang.Object... additionalArguments)
public static java.util.List<io.restassured.specification.Argument> withNoArguments()
public static java.util.List<io.restassured.specification.Argument> withArgs(java.lang.Object firstArgument, java.lang.Object... additionalArguments)
public static java.util.List<io.restassured.specification.Argument> withNoArgs()
public static io.restassured.specification.RequestSpecification given()
public static io.restassured.specification.RequestSender when()
public static io.restassured.specification.RequestSender given(io.restassured.specification.RequestSpecification request, io.restassured.specification.ResponseSpecification response)
public static io.restassured.specification.RequestSpecification given(io.restassured.specification.RequestSpecification requestSpecification)
public static io.restassured.config.SSLConfig useRelaxedHTTPSValidation()
public static io.restassured.config.SSLConfig useRelaxedHTTPSValidation(java.lang.String protocol)
public static void registerParser(java.lang.String contentType, io.restassured.parsing.Parser parser)
public static void unregisterParser(java.lang.String contentType)
public static io.restassured.authentication.AuthenticationScheme oauth2(java.lang.String accessToken)
public static io.restassured.config.SSLConfig trustStore(java.security.KeyStore truststore)
public static io.restassured.authentication.AuthenticationScheme certificate(java.lang.String certURL, java.lang.String password)
public static io.restassured.config.LogConfig enableLoggingOfRequestAndResponseIfValidationFails()
public static io.restassured.config.LogConfig enableLoggingOfRequestAndResponseIfValidationFails(io.restassured.filter.log.LogDetail logDetail)
public static io.restassured.authentication.AuthenticationScheme certificate(java.lang.String certURL, java.lang.String password, io.restassured.authentication.CertificateAuthSettings certificateAuthSettings)
public static io.restassured.authentication.AuthenticationScheme form(java.lang.String userName, java.lang.String password)
public static io.restassured.authentication.PreemptiveAuthProvider preemptive()
public static io.restassured.authentication.AuthenticationScheme form(java.lang.String userName, java.lang.String password, io.restassured.authentication.FormAuthConfig config)
public static io.restassured.authentication.AuthenticationScheme oauth2(java.lang.String accessToken, io.restassured.authentication.OAuthSignature signature)
public static io.restassured.authentication.AuthenticationScheme basic(java.lang.String userName, java.lang.String password)
public static io.restassured.specification.ProxySpecification proxy(java.lang.String host, int port, java.lang.String scheme)
public static io.restassured.specification.ProxySpecification proxy(java.lang.String host, int port)
public static io.restassured.specification.ProxySpecification proxy(int port)
public static io.restassured.specification.ProxySpecification proxy(java.net.URI uri)
public static io.restassured.specification.ProxySpecification proxy(java.lang.String host)
public static io.restassured.specification.ProxySpecification proxy(io.restassured.specification.ProxySpecification proxySpecification)
public static io.restassured.specification.ProxySpecification setDefaultProxy(java.lang.String host, int port, java.lang.String scheme)
public static io.restassured.specification.ProxySpecification setDefaultProxy(io.restassured.specification.ProxySpecification proxy)
public static io.restassured.specification.ProxySpecification setDefaultProxy(java.lang.String host, int port)
public static io.restassured.specification.ProxySpecification setDefaultProxy(int port)
public static io.restassured.specification.ProxySpecification setDefaultProxy(java.net.URI uri)
public static io.restassured.specification.ProxySpecification getDefaultProxy()
public static io.restassured.config.SSLConfig keystore(java.io.File pathToJks, java.lang.String password)
public static io.restassured.config.SSLConfig keystore(java.lang.String password)
public static io.restassured.config.SSLConfig keystore(java.lang.String pathToJks, java.lang.String password)
public static io.restassured.response.Response head(java.net.URI uri)
public static io.restassured.response.Response head()
public static io.restassured.response.Response head(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response head(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
public static io.restassured.response.Response head(java.net.URL url)
public static io.restassured.config.RestAssuredConfig config()
public static io.restassured.config.RestAssuredConfig getDefaultConfig()
public static io.restassured.config.RestAssuredConfig setDefaultConfig(io.restassured.config.RestAssuredConfig config)
public static io.restassured.authentication.AuthenticationScheme oauth(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String accessToken, java.lang.String secretToken, io.restassured.authentication.OAuthSignature signature)
public static io.restassured.authentication.AuthenticationScheme oauth(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String accessToken, java.lang.String secretToken)
public static io.restassured.authentication.AuthenticationScheme digest(java.lang.String userName, java.lang.String password)
public static io.restassured.response.Response options()
public static io.restassured.response.Response options(java.net.URL url)
public static io.restassured.response.Response options(java.net.URI uri)
public static io.restassured.response.Response options(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response options(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
public static io.restassured.response.Response patch(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
public static io.restassured.response.Response patch(java.net.URI uri)
public static io.restassured.response.Response patch(java.net.URL url)
public static io.restassured.response.Response patch()
public static io.restassured.response.Response patch(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response post(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response post(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
public static io.restassured.response.Response post(java.net.URL url)
public static io.restassured.response.Response post()
public static io.restassured.response.Response post(java.net.URI uri)
public static io.restassured.response.Response put(java.net.URI uri)
public static io.restassured.response.Response put(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response put()
public static io.restassured.response.Response put(java.net.URL url)
public static io.restassured.response.Response delete(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
public static io.restassured.response.Response delete(java.net.URL url)
public static io.restassured.response.Response delete(java.net.URI uri)
public static io.restassured.response.Response delete()
public static io.restassured.response.Response delete(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response get(java.net.URI uri)
public static io.restassured.response.Response get(java.net.URL url)
public static io.restassured.response.Response get(java.lang.String path, java.lang.Object... pathParams)
public static io.restassured.response.Response get(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
public static io.restassured.response.Response get()