Uses of Interface
io.restassured.module.mockmvc.specification.MockMvcRequestSpecification
Packages that use MockMvcRequestSpecification
Package
Description
-
Uses of MockMvcRequestSpecification in io.restassured.module.mockmvc
Fields in io.restassured.module.mockmvc declared as MockMvcRequestSpecificationModifier and TypeFieldDescriptionstatic MockMvcRequestSpecificationRestAssuredMockMvc.requestSpecificationSpecify a default request specification that will be sent with each request.Methods in io.restassured.module.mockmvc that return MockMvcRequestSpecificationModifier and TypeMethodDescriptionstatic MockMvcRequestSpecificationRestAssuredMockMvc.given()This is usually the entry-point of the API if you need to specify parameters or a body in the request.static MockMvcRequestSpecificationRestAssuredMockMvc.with()This is usually the entry-point of the API if you need to specify parameters or a body in the request. -
Uses of MockMvcRequestSpecification in io.restassured.module.mockmvc.internal
Classes in io.restassured.module.mockmvc.internal that implement MockMvcRequestSpecificationMethods in io.restassured.module.mockmvc.internal that return MockMvcRequestSpecificationModifier and TypeMethodDescriptionMockMvcRequestSpecificationImpl.accept(io.restassured.http.ContentType contentType) MockMvcRequestSpecificationImpl.accept(org.springframework.http.MediaType... mediaTypes) MockMvcRequestLogSpecificationImpl.all()MockMvcRequestLogSpecificationImpl.all(boolean shouldPrettyPrint) MockMvcRequestSpecificationImpl.and()MockMvcRequestSpecificationImpl.attributes(Map<String, ?> attributesMap) MockMvcRequestSpecificationImpl.authentication(Object authentication) MockMvcRequestLogSpecificationImpl.body()MockMvcRequestLogSpecificationImpl.body(boolean shouldPrettyPrint) MockMvcRequestSpecificationImpl.body(byte[] body) MockMvcRequestSpecificationImpl.body(Object object, io.restassured.mapper.ObjectMapperType mapperType) MockMvcRequestSpecificationImpl.config(RestAssuredMockMvcConfig config) MockMvcRequestSpecificationImpl.contentType(io.restassured.http.ContentType contentType) MockMvcRequestSpecificationImpl.contentType(String contentType) MockMvcRequestSpecificationImpl.contentType(org.springframework.http.MediaType mediaType) MockMvcRequestSpecificationImpl.cookie(io.restassured.http.Cookie cookie) MockMvcRequestSpecificationImpl.cookie(String cookieName, Object cookieValue, Object... additionalValues) MockMvcRequestLogSpecificationImpl.cookies()MockMvcRequestSpecificationImpl.cookies(io.restassured.http.Cookies cookies) MockMvcRequestSpecificationImpl.cookies(String firstCookieName, Object firstCookieValue, Object... cookieNameValuePairs) MockMvcRequestLogSpecificationImpl.everything()MockMvcRequestLogSpecificationImpl.everything(boolean shouldPrettyPrint) MockMvcRequestSpecificationImpl.formParam(String parameterName, Collection<?> parameterValues) MockMvcRequestSpecificationImpl.formParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) MockMvcRequestSpecificationImpl.formParams(Map<String, ?> parametersMap) MockMvcRequestSpecificationImpl.header(io.restassured.http.Header header) MockMvcRequestSpecificationImpl.header(String headerName, Object headerValue, Object... additionalHeaderValues) MockMvcRequestLogSpecificationImpl.headers()MockMvcRequestSpecificationImpl.headers(io.restassured.http.Headers headers) MockMvcRequestSpecificationImpl.headers(String firstHeaderName, Object firstHeaderValue, Object... headerNameValuePairs) MockMvcRequestLogSpecificationImpl.ifValidationFails()MockMvcRequestLogSpecificationImpl.ifValidationFails(io.restassured.filter.log.LogDetail logDetail) MockMvcRequestLogSpecificationImpl.ifValidationFails(io.restassured.filter.log.LogDetail logDetail, boolean shouldPrettyPrint) MockMvcRequestSpecificationImpl.interceptor(MockHttpServletRequestBuilderInterceptor interceptor) MockMvcRequestSpecificationImpl.mockMvc(org.springframework.test.web.servlet.MockMvc mockMvc) MockMvcRequestSpecificationImpl.multiPart(String controlName, String fileName, byte[] bytes, String mimeType) MockMvcRequestSpecificationImpl.multiPart(String controlName, String fileName, InputStream stream) MockMvcRequestSpecificationImpl.multiPart(String controlName, String fileName, InputStream stream, String mimeType) MockMvcRequestSpecificationImpl.multiPart(String controlName, String filename, Object object, String mimeType) MockMvcRequestSpecificationImpl.none()MockMvcRequestSpecificationImpl.param(String parameterName, Collection<?> parameterValues) MockMvcRequestLogSpecificationImpl.parameters()MockMvcRequestLogSpecificationImpl.params()MockMvcRequestSpecificationImpl.params(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) MockMvcRequestSpecificationImpl.pathParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) MockMvcRequestSpecificationImpl.pathParams(Map<String, Object> parametersMap) MockMvcRequestSpecificationImpl.postProcessors(org.springframework.test.web.servlet.request.RequestPostProcessor postProcessor, org.springframework.test.web.servlet.request.RequestPostProcessor... additionalPostProcessors) MockMvcRequestSpecificationImpl.principalWithCredentials(Object principal, Object credentials, String... authorities) MockMvcRequestSpecificationImpl.queryParam(String parameterName, Object... parameterValues) MockMvcRequestSpecificationImpl.queryParam(String parameterName, Collection<?> parameterValues) MockMvcRequestSpecificationImpl.queryParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) MockMvcRequestSpecificationImpl.queryParams(Map<String, ?> parametersMap) MockMvcRequestSpecificationImpl.resultHandlers(org.springframework.test.web.servlet.ResultHandler resultHandler, org.springframework.test.web.servlet.ResultHandler... resultHandlers) MockMvcRequestSpecificationImpl.sessionAttr(String name, Object value) Set a session attribute.MockMvcRequestSpecificationImpl.sessionAttrs(Map<String, Object> sessionAttributes) Set session attributes.MockMvcRequestSpecificationImpl.spec(MockMvcRequestSpecification requestSpecificationToMerge) MockMvcRequestSpecificationImpl.standaloneSetup(Object... controllerOrMockMvcConfigurer) MockMvcRequestSpecificationImpl.standaloneSetup(org.springframework.test.web.servlet.MockMvcBuilder builder) MockMvcRequestSpecificationImpl.webAppContextSetup(org.springframework.web.context.WebApplicationContext context, org.springframework.test.web.servlet.setup.MockMvcConfigurer... mockMvcConfigurers) MockMvcRequestSpecificationImpl.with(org.springframework.test.web.servlet.request.RequestPostProcessor requestPostProcessor, org.springframework.test.web.servlet.request.RequestPostProcessor... additionalRequestPostProcessor) Methods in io.restassured.module.mockmvc.internal with parameters of type MockMvcRequestSpecificationModifier and TypeMethodDescriptionMockMvcRequestSpecificationImpl.spec(MockMvcRequestSpecification requestSpecificationToMerge) Constructors in io.restassured.module.mockmvc.internal with parameters of type MockMvcRequestSpecificationModifierConstructorDescriptionMockMvcRequestSpecificationImpl(MockMvcFactory mockMvcFactory, RestAssuredMockMvcConfig config, List<org.springframework.test.web.servlet.ResultHandler> resultHandlers, List<org.springframework.test.web.servlet.request.RequestPostProcessor> requestPostProcessors, String basePath, MockMvcRequestSpecification requestSpecification, io.restassured.specification.ResponseSpecification responseSpecification, MockMvcAuthenticationScheme authentication) -
Uses of MockMvcRequestSpecification in io.restassured.module.mockmvc.specification
Methods in io.restassured.module.mockmvc.specification that return MockMvcRequestSpecificationModifier and TypeMethodDescriptionMockMvcRequestSpecification.accept(io.restassured.http.ContentType contentType) Specify the accept header of the request.Specify the accept header of the request.MockMvcRequestSpecification.accept(org.springframework.http.MediaType... mediaTypes) Specify the accept header of the request.MockMvcRequestSpecification.and()Syntactic sugarSpecify a single-value request attributeMockMvcRequestSpecification.attributes(Map<String, ?> attributesMap) Specify request attributes as a mapMockMvcAuthenticationSpecification.authentication(Object authentication) Authenticate using the given authentication instance.MockMvcRequestSpecification.body(byte[] body) Specify a byte array request body that'll be sent with the request.Specify file content that'll be sent with the request.Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request.Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request using a specific object mapper.Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request using a specific object mapper type.Specify a String request body (such as e.g.MockMvcRequestSpecBuilder.build()Build the request specification.MockMvcRequestSpecification.config(RestAssuredMockMvcConfig config) Define a REST Assured Mock Mvc configuration.MockMvcRequestSpecification.contentType(io.restassured.http.ContentType contentType) Specify the content type of the request.MockMvcRequestSpecification.contentType(String contentType) Specify the content type of the request.MockMvcRequestSpecification.contentType(org.springframework.http.MediaType mediaType) Specify the content type of the request.MockMvcRequestSpecification.cookie(io.restassured.http.Cookie cookie) Specify aCookieto send with the request.Specify a cookie that'll be sent with the request e.g:MockMvcRequestSpecification.cookies(io.restassured.http.Cookies cookies) Specify the cookies that'll be sent with the request asCookies:MockMvcRequestSpecification.cookies(String firstCookieName, Object firstCookieValue, Object... cookieNameValuePairs) Specify the cookies that'll be sent with the request.Specify the cookies that'll be sent with the request as Map e.g:Specify a form parameter that'll be sent with the request.MockMvcRequestSpecification.formParam(String parameterName, Collection<?> parameterValues) Specify a multi-value form parameter that'll be sent with the request e.g:MockMvcRequestSpecification.formParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) Specify the form parameters that'll be sent with the request.MockMvcRequestSpecification.formParams(Map<String, ?> parametersMap) Specify the form parameters that'll be sent with the request.MockMvcRequestSpecification.header(io.restassured.http.Header header) Specify aHeaderto send with the request.MockMvcRequestSpecification.header(String headerName, Object headerValue, Object... additionalHeaderValues) Specify a header that'll be sent with the request e.g:MockMvcRequestSpecification.headers(io.restassured.http.Headers headers) Specify the headers that'll be sent with the request asHeaders, e.g:MockMvcRequestSpecification.headers(String firstHeaderName, Object firstHeaderValue, Object... headerNameValuePairs) Specify the headers that'll be sent with the request.Specify the headers that'll be sent with the request as Map e.g:MockMvcRequestSpecification.interceptor(MockHttpServletRequestBuilderInterceptor interceptor) Intercept theMockHttpServletRequestBuildercreated by REST Assured before it's used to perform the request.MockMvcRequestSpecification.mockMvc(org.springframework.test.web.servlet.MockMvc mockMvc) Provide aMockMvcinstance to that REST Assured will use when making this request.Specify a file to upload to the server using multi-part form data uploading.Specify a file to upload to the server using multi-part form data uploading with a specific control name.Specify a file to upload to the server using multi-part form data uploading with a specific control name and mime-type.Specify an object that will be serialized to JSON and uploaded to the server using multi-part form data uploading with a specific control name.Specify an object that will be serialized and uploaded to the server using multi-part form data uploading with a specific control name.Specify a string to send to the server using multi-part form data.Specify a byte-array to upload to the server using multi-part form data.MockMvcRequestSpecification.multiPart(String controlName, String fileName, byte[] bytes, String mimeType) Specify a byte-array to upload to the server using multi-part form data.MockMvcRequestSpecification.multiPart(String controlName, String fileName, InputStream stream) Specify an inputstream to upload to the server using multi-part form data.MockMvcRequestSpecification.multiPart(String controlName, String fileName, InputStream stream, String mimeType) Specify an inputstream to upload to the server using multi-part form data.MockMvcRequestSpecification.multiPart(String controlName, String filename, Object object, String mimeType) Specify an object that will be serialized and uploaded to the server using multi-part form data uploading with a specific control name.Specify a string to send to the server using multi-part form data with a specific mime-type.MockMvcAuthenticationSpecification.none()Explicitly state that you don't which to use any authentication in this request.Specify a parameter that'll be sent with the request e.g:MockMvcRequestSpecification.param(String parameterName, Collection<?> parameterValues) Specify a multi-value parameter that'll be sent with the request e.g:MockMvcRequestLogSpecification.parameters()Logs only the parameters of the request.MockMvcRequestLogSpecification.params()Logs only the parameters of the request.MockMvcRequestSpecification.params(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) Specify the parameters that'll be sent with the request.Specify the parameters that'll be sent with the request as Map e.g:Specify a path parameter.MockMvcRequestSpecification.pathParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) Specify the path parameters that'll be sent with the request.MockMvcRequestSpecification.pathParams(Map<String, Object> parametersMap) Specify the path parameters that'll be sent with the request.MockMvcRequestSpecification.postProcessors(org.springframework.test.web.servlet.request.RequestPostProcessor postProcessor, org.springframework.test.web.servlet.request.RequestPostProcessor... additionalPostProcessors) An extension point for further initialization ofMockHttpServletRequestin ways not built directly into theMockHttpServletRequestBuilder.Authenticate using the given principal.Authenticate using the given principal.MockMvcAuthenticationSpecification.principalWithCredentials(Object principal, Object credentials, String... authorities) Authenticate using the given principal and credentials.MockMvcRequestSpecification.queryParam(String parameterName, Object... parameterValues) Specify a query parameter that'll be sent with the request.MockMvcRequestSpecification.queryParam(String parameterName, Collection<?> parameterValues) Specify a multi-value query parameter that'll be sent with the request e.g:MockMvcRequestSpecification.queryParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs) Specify the query parameters that'll be sent with the request.MockMvcRequestSpecification.queryParams(Map<String, ?> parametersMap) Specify the query parameters that'll be sent with the request.MockMvcRequestSpecification.sessionAttr(String name, Object value) Set a session attribute.MockMvcRequestSpecification.sessionAttrs(Map<String, Object> sessionAttributes) Set session attributes.Set the session id for this request.Set the session id name and value for this request.MockMvcRequestSpecification.spec(MockMvcRequestSpecification requestSpecificationToMerge) Add request data from a pre-defined specification.MockMvcRequestSpecification.standaloneSetup(Object... controllerOrMockMvcConfigurer) Build aMockMvcby registering one or more@Controller's instances and configuring Spring MVC infrastructure programmatically.MockMvcRequestSpecification.standaloneSetup(org.springframework.test.web.servlet.MockMvcBuilder builder) Build aMockMvcby using a providedAbstractMockMvcBuilderfor configuring Spring MVC infrastructure programmatically.MockMvcRequestSpecification.webAppContextSetup(org.springframework.web.context.WebApplicationContext context, org.springframework.test.web.servlet.setup.MockMvcConfigurer... mockMvcConfigurers) Build aMockMvcusing the given, fully initialized, i.e.MockMvcAuthenticationSpecification.with(org.springframework.test.web.servlet.request.RequestPostProcessor requestPostProcessor, org.springframework.test.web.servlet.request.RequestPostProcessor... additionalRequestPostProcessor) Authenticate using aRequestPostProcessor.Methods in io.restassured.module.mockmvc.specification with parameters of type MockMvcRequestSpecificationModifier and TypeMethodDescriptionMockMvcRequestSpecBuilder.addMockMvcRequestSpecification(MockMvcRequestSpecification specification) Merge this builder with settings from another specification.voidMockMvcAuthenticationScheme.authenticate(MockMvcRequestSpecification mockMvcRequestSpecification) Perform authentication using one of methods inMockMvcRequestSpecification.MockMvcRequestSpecification.spec(MockMvcRequestSpecification requestSpecificationToMerge) Add request data from a pre-defined specification.