MCPcopy Create free account

hub / github.com/rest-assured/rest-assured / functions

Functions4,459 in github.com/rest-assured/rest-assured

↓ 1,159 callersMethodbody
Returns the response body @return The response body.
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:47
↓ 1,026 callersMethodwhen
Syntactic sugar, e.g. <pre> expect().body(containsString("OK")).when().get("/something"); </pre> <p/> is that same as: <pre> expect().body(containsStr
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1432
↓ 936 callersMethodget
Get a value from the current XML object. <p> This method returns the child whose name matches <code>name</code>. If several children matches the name
xml-path/src/main/java/io/restassured/path/xml/element/PathElement.java:55
↓ 865 callersMethodassertThat
Syntactic sugar, e.g. <pre> get("/something").then().assertThat().body(containsString("OK")).and().body(containsString("something else")); </pre> <p/>
rest-assured/src/main/java/io/restassured/response/ValidatableResponseOptions.java:964
↓ 671 callersMethodgiven
Syntactic sugar, e.g. <pre> given().param("name1", "value1").and().given().param("name2", "value2").when().get("/something"); </pre> <p/> is that same
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1447
↓ 531 callersMethodexpect
Returns the response specification so that you can setup the expectations on the response. E.g. <pre> given().param("name", "value").and().expect().bo
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1417
↓ 488 callersMethodthen
Returns a validatable response that's lets you validate the response. Usage example: <p/> <pre> given(). param("firstName", "John"). p
rest-assured/src/main/java/io/restassured/response/Validatable.java:36
↓ 432 callersMethodstatusCode
Get the status code of the response. @return The status code of the response.
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:197
↓ 332 callersMethodbuild
Builds and returns a {@link WebTestClient} instance based on provided configuration @param webTestClientConfig configuration to be used during WebTest
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/internal/WebTestClientFactory.java:28
↓ 324 callersMethodconf
(Class<T> type)
rest-assured/src/main/java/io/restassured/config/RestAssuredConfig.java:557
↓ 259 callersMethodgiven
This is usually the entry-point of the API if you need to specify parameters or a body in the request. For example: <p/> <pre> given(). param(
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/RestAssuredMockMvc.java:136
↓ 256 callersMethodconfig
Define a REST Assured configuration. E.g. <pre> given().config(config().redirect(redirectConfig().followRedirects(true).and().maxRedirects(0))). .. </
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:624
↓ 253 callersMethodthen
Return back to request sender
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestAsyncConfigurer.java:59
↓ 244 callersMethodpost
Perform a POST request to a <code>path</code>. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as <tt>htt
rest-assured/src/main/java/io/restassured/specification/RequestSenderOptions.java:60
↓ 220 callersMethodbody
Specify a String request body (such as e.g. JSON or XML) that'll be sent with the request. This works for the POST and PUT methods only. Trying to do
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestSpecification.java:496
↓ 209 callersMethodget
Perform a GET request to a uri obtained from a {@link Function<>} that uses {@link UriBuilder} to generate {@link URI}. @param uriFunction The functi
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSender.java:43
↓ 202 callersMethodparam
Specify a parameter that'll be sent with the request e.g: <p> <pre> given().param("username", "John").when().get("/cookie").then().assertThat().body(e
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:393
↓ 189 callersMethodfilter
Filter the incoming request and response specifications and outgoing response. You need to call {@link FilterContext#next(FilterableRequestSpecificati
rest-assured/src/main/java/io/restassured/filter/Filter.java:45
↓ 180 callersMethodbody
Specify a String request body (such as e.g. JSON or XML) that'll be sent with the request. This works for the POST and PUT methods only. Trying to do
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSpecification.java:494
↓ 174 callersMethodput
Perform a PUT request to a <code>path</code>. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as <tt>http
rest-assured/src/main/java/io/restassured/specification/RequestSenderOptions.java:80
↓ 159 callersMethodassertThat
Assert that a {@link org.springframework.test.web.servlet.ResultMatcher} matches the response. <p/> <p>Note same as {@link #expect(org.springframework
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/response/ValidatableMockMvcResponse.java:52
↓ 158 callersMethodgiven
This is usually the entry-point of the API if you need to specify parameters or a body in the request. For example: <p/> <pre> given(). param(
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/RestAssuredWebTestClient.java:110
↓ 151 callersMethodcontentType
Get the content type of the response @return The content type value or <code>null</code> if not found.
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:155
↓ 147 callersMethodtoString
()
rest-assured/src/main/java/io/restassured/http/Cookie.java:286
↓ 146 callersMethodformat
Returns a String that is suitable for use as an <code>application/x-www-form-urlencoded</code> list of parameters in an HTTP PUT or HTTP POST. <p> Thi
rest-assured/src/main/java/io/restassured/internal/http/URIBuilder.java:410
↓ 142 callersMethodwhen
Call this method when you're done setting up the request specification. @return The {@link MockMvcRequestSender} that let's you send the request.
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestSpecification.java:951
↓ 140 callersMethodand
Syntactic sugar, e.g. <pre> expect().body(containsString("OK")).and().body(containsString("something else")).when().get("/something"); </pre> <p/> is
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1382
↓ 133 callersMethodtoString
()
examples/rest-assured-itest-java/src/test/java/io/restassured/itest/java/LoggingToDiskTest.java:125
↓ 123 callersMethodwith
Syntactic sugar, e.g. <pre> expect().body(containsString("OK")).and().with().request().parameters("param1", "value1").get("/something"); </pre> <p/> i
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1397
↓ 120 callersMethodadd
(BodyMatcherGroup group)
rest-assured/src/main/java/io/restassured/internal/assertion/BodyMatcherGroup.java:13
↓ 109 callersMethodlogConfig
(LogConfig logConfig)
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/SpecificationConfig.java:42
↓ 109 callersMethodreset
Resets the {@link #baseURI}, {@link #basePath}, {@link #port}, {@link #authentication} and {@link #rootPath}, {@link #filters(java.util.List)}, {@link
rest-assured/src/main/java/io/restassured/RestAssured.java:1428
↓ 109 callersMethodwhen
Call this method when you're done setting up the request specification. @return The {@link WebTestClientRequestSender} that let's you send the reques
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSpecification.java:938
↓ 107 callersMethodmultiPart
Specify a multi-part specification. Use this method if you need to specify content-type etc. @param multiPartSpecification Multipart specification @r
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:959
↓ 103 callersMethodheader
Get a single header value associated with the given name. If the header is a multi-value header then you need to use {@link Headers#getList(String)} i
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:78
↓ 91 callersMethodpathParam
Specify a path parameter. Path parameters are used to improve readability of the request path. E.g. instead of writing: <pre> when(). get("/ite
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:547
↓ 86 callersMethodgiven
Start building the request part of the test io.restassured.specification. E.g. <p/> <pre> given().parameters("firstName", "John", "lastName", "Doe").w
rest-assured/src/main/java/io/restassured/RestAssured.java:653
↓ 85 callersMethodstandaloneSetup
Build a {@link MockMvc} by registering one or more {@code @Controller}'s instances and configuring Spring MVC infrastructure programmatically. This al
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestSpecification.java:975
↓ 85 callersMethodwithArgs
Create a list of arguments that can be used to create parts of the path in a body/content expression. This is useful in situations where you have e.g.
rest-assured/src/main/java/io/restassured/RestAssured.java:611
↓ 84 callersMethodspec
Add request data from a pre-defined specification. E.g. <pre> RequestSpecification requestSpec = new RequestSpecBuilder().addParam("parameter1", "valu
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1270
↓ 83 callersMethodpost
Perform a POST request to a uri obtained from a {@link Function<>} that uses {@link UriBuilder} to generate {@link URI}. @param uriFunction The funct
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSender.java:52
↓ 74 callersMethodgetName
()
rest-assured/src/main/java/io/restassured/internal/NameAndValue.java:23
↓ 72 callersMethodlog
Returns the {@link RequestLogSpecification} that allows you to log different parts of the {@link RequestSpecification}. This is mainly useful for debu
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1357
↓ 68 callersMethodrequest
Perform a request to a uri obtained from a {@link Function<>} that uses {@link UriBuilder} to generate {@link URI}. @param method The HTTP method t
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSender.java:107
↓ 67 callersMethodgetValue
()
rest-assured/src/main/java/io/restassured/internal/NameAndValue.java:24
↓ 66 callersMethodsetStatusCode
Set the status code of the response. @return The builder
rest-assured/src/main/java/io/restassured/builder/ResponseBuilder.java:200
↓ 64 callersMethodget
Perform a GET request to a <code>path</code>. Normally the path doesn't have to be fully-qualified e.g. you don't need to specify the path as <tt>http
rest-assured/src/main/java/io/restassured/specification/RequestSenderOptions.java:40
↓ 63 callersMethodcookie
Get a single cookie <i>value</i> associated with the given name. If you want more details than just the value use {@link #detailedCookie(String)}. @r
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:126
↓ 62 callersMethodnext
Continue to the next filter in the chain. @param request The request specification @param response The response specification @return The response o
rest-assured/src/main/java/io/restassured/filter/FilterContext.java:78
↓ 62 callersMethodparam
Specify a parameter that'll be sent with the request e.g: <p> <pre> given().parameter("username", "John").and().expect().body(equalTo("username")).whe
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestSpecification.java:292
↓ 61 callersMethodconfig
@return The assigned config or a new config is no config is assigned
rest-assured/src/main/java/io/restassured/RestAssured.java:1792
↓ 61 callersMethodconfig
@return A static way to create a new RestAssuredConfiguration instance without calling "new" explicitly. Mainly for syntactic sugar.
rest-assured/src/main/java/io/restassured/config/RestAssuredConfig.java:541
↓ 61 callersMethodformParam
Specify a form parameter that'll be sent with the request. Note that this method is the same as {@link #param(String, Object...)} for all http methods
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:496
↓ 61 callersMethodpath
Get a value from the response body using the JsonPath or XmlPath syntax. REST Assured will automatically determine whether to use JsonPath or XmlPath
rest-assured/src/main/java/io/restassured/response/ResponseBodyExtractionOptions.java:203
↓ 58 callersMethodasString
Get the body as a string. @return The body as a string.
rest-assured/src/main/java/io/restassured/response/ResponseBodyData.java:27
↓ 58 callersMethodqueryParam
Specify a query parameter that'll be sent with the request. Note that this method is the same as {@link #param(String, Object...)} for all http method
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:442
↓ 57 callersMethodmultiPartConfig
(MultiPartConfig multiPartConfig)
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/SpecificationConfig.java:62
↓ 57 callersMethodrootPath
Set the root path with arguments of the response body so that you don't need to write the entire path for each expectation. @param rootPath The root
rest-assured/src/main/java/io/restassured/specification/ResponseSpecification.java:474
↓ 57 callersMethodsize
@return The number of children
xml-path/src/main/java/io/restassured/path/xml/element/NodeChildren.java:38
↓ 56 callersMethodsetBody
Set the response body to a String @return Builder.
rest-assured/src/main/java/io/restassured/builder/ResponseBuilder.java:81
↓ 54 callersMethodgetString
Get the result of an XML path expression as a string. For syntax details please refer to <a href="http://www.groovy-lang.org/processing-xml.html#_mani
xml-path/src/main/java/io/restassured/path/xml/XmlPath.java:570
↓ 53 callersMethodwhen
()
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/internal/WebTestClientRequestSpecificationImpl.java:631
↓ 51 callersMethodparams
Specify the parameters that'll be sent with the request. This is done by specifying the parameters in name-value pairs, e.g: <pre> given().params("use
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:349
↓ 51 callersMethodput
Perform a PUT request to a uri obtained from a {@link Function<>} that uses {@link UriBuilder} to generate {@link URI}. @param uriFunction The func
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSender.java:61
↓ 51 callersMethodtoString
()
rest-assured/src/main/java/io/restassured/internal/http/Status.java:31
↓ 49 callersMethodnewConfig
@return A static way to create a new RestAssuredConfiguration instance without calling "new" explicitly. Mainly for syntactic sugar.
rest-assured/src/main/java/io/restassured/config/RestAssuredConfig.java:534
↓ 48 callersMethodrequest
Perform a request to the pre-configured path (by default <code>http://localhost:8080</code>). @param method The HTTP method to use @return The respon
rest-assured/src/main/java/io/restassured/specification/RequestSenderOptions.java:340
↓ 47 callersMethodcsrfConfig
()
rest-assured/src/main/java/io/restassured/config/CsrfConfig.java:100
↓ 47 callersMethodisEmpty
@return <code>true</code> if there are no children, <code>false</code> otherwise.
xml-path/src/main/java/io/restassured/path/xml/element/NodeChildren.java:43
↓ 46 callersMethodall
Logs everything in the specification, including e.g. headers, cookies, body. Pretty-prints the body if content-type is either either XML, JSON or HT
rest-assured/src/main/java/io/restassured/specification/LogSpecification.java:47
↓ 45 callersMethoddefaultContentCharset
@return The configured default content charset that'll be used by REST Assured if no charset is specified in the response.
rest-assured/src/main/java/io/restassured/config/DecoderConfig.java:183
↓ 45 callersMethodparam
Specify a parameter that'll be sent with the request e.g: <p> <pre> given().parameter("username", "John").and().expect().body(equalTo("username")).whe
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSpecification.java:288
↓ 45 callersMethodstandaloneSetup
Build a {@link WebTestClient} by registering one or more {@code @Controller}'s instances and configuring Spring infrastructure programmatically. This
modules/spring-web-test-client/src/main/java/io/restassured/module/webtestclient/specification/WebTestClientRequestSpecification.java:953
↓ 43 callersMethodget
Get a Object graph with no named root element as a Java object. This is just a short-cut for <p/> <pre> get(""); </pre> or <pre> get("$"); </p
json-path/src/main/java/io/restassured/path/json/JsonPath.java:189
↓ 43 callersMethodgetEncoderConfig
()
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/SpecificationConfig.java:28
↓ 43 callersMethodwhen
()
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/internal/MockMvcRequestSpecificationImpl.java:595
↓ 42 callersMethodfrom
Instantiate a new JsonPath instance. @param stream The stream containing the Object document
json-path/src/main/java/io/restassured/path/json/JsonPath.java:849
↓ 42 callersMethodisUserConfigured
()
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/ClientConfig.java:21
↓ 41 callersMethodauth
Specify authentication credentials when performing a request. @return The authentication specification @see AuthenticationSpecification
rest-assured/src/main/java/io/restassured/specification/RequestSpecification.java:1097
↓ 41 callersMethoddefaultStream
@return The default stream to use
rest-assured/src/main/java/io/restassured/config/LogConfig.java:104
↓ 41 callersMethodfrom
Instantiate a new XmlPath instance. @param stream The stream containing the XML document
xml-path/src/main/java/io/restassured/path/xml/XmlPath.java:788
↓ 41 callersMethodinvokeMethod
(Object instance, String methodName, Object... arguments)
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/util/ReflectionUtil.java:17
↓ 41 callersMethodreset
Reset all static configurations to their default values.
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/RestAssuredMockMvc.java:297
↓ 41 callersMethodthenReturn
Syntactic sugar, simply returns the same response instance. @return The same response instance.
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:40
↓ 40 callersMethodas
Get the body and map it to a Java object. For JSON responses this requires that you have either <ol> <li>Jackson, or</li> <li>Gson</li> </ol> in the c
rest-assured/src/main/java/io/restassured/response/ResponseBodyExtractionOptions.java:43
↓ 39 callersMethodheaders
The response headers. If there are several response headers with the same name a list of the response header values are returned. @return The respons
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:62
↓ 39 callersMethodparamConfig
(ParamConfig paramConfig)
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/SpecificationConfig.java:70
↓ 38 callersMethodimplOf
(MockMvcRequestSpecification spec)
modules/spring-mock-mvc/src/test/java/io/restassured/module/mockmvc/MockMvcRequestSpecificationMergingTest.java:531
↓ 38 callersMethodspec
Add request data from a pre-defined specification. E.g. <pre> MockMvcRequestSpecification requestSpec = new MockMvcRequestSpecBuilder().addParam("para
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestSpecification.java:902
↓ 37 callersMethodencoderConfig
(EncoderConfig encoderConfig)
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/SpecificationConfig.java:30
↓ 37 callersMethodgetContentType
Get the content type of the response @return The content type value or <code>null</code> if not found.
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:162
↓ 37 callersMethodof
Create a new {@link MockMvcFactory} with the supplied controllers or mock mvc configurers @param controllerOrMockMvcConfigurers Array of controllers
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/internal/StandaloneMockMvcFactory.java:34
↓ 35 callersMethodextract
Extract values from the response or return the response instance itself. This is useful for example if you want to use values from the response in seq
rest-assured/src/main/java/io/restassured/response/ValidatableResponseOptions.java:1067
↓ 35 callersMethodjsonConfig
(JsonConfig jsonConfig)
modules/spring-commons/src/main/java/io/restassured/module/spring/commons/config/SpecificationConfig.java:38
↓ 35 callersMethodloggedRequestPathIn
(StringWriter writer)
examples/rest-assured-itest-java/src/test/java/io/restassured/itest/java/support/RequestPathFromLogExtractor.java:25
↓ 35 callersMethodtoByteArray
(InputStream stream)
rest-assured/src/main/java/io/restassured/internal/util/IOUtils.java:25
↓ 34 callersMethodresponseMock
()
rest-assured/src/test/java/io/restassured/builder/ResponseSpecBuilderExpectationsTest.java:197
↓ 33 callersMethodgetHeaders
The response headers. If there are several response headers with the same name a list of the response header values are returned. @return The respons
rest-assured/src/main/java/io/restassured/response/ResponseOptions.java:70
↓ 32 callersMethodqueryParam
Specify a query parameter that'll be sent with the request. Note that this method is the same as {@link #param(String, Object...)} for all http method
modules/spring-mock-mvc/src/main/java/io/restassured/module/mockmvc/specification/MockMvcRequestSpecification.java:341
↓ 31 callersMethodconvertObjectTo
(Object object, Class<T> explicitType)
xml-path/src/main/java/io/restassured/path/xml/XmlPath.java:923
next →1–100 of 4,459, ranked by callers