| Package | Description |
|---|---|
| com.jayway.restassured.module.mockmvc | |
| com.jayway.restassured.module.mockmvc.internal | |
| com.jayway.restassured.module.mockmvc.specification |
| Modifier and Type | Field and Description |
|---|---|
static MockMvcAuthenticationScheme |
RestAssuredMockMvc.authentication
Defines a global authentication scheme that'll be used for all requests (if not overridden).
|
| Modifier and Type | Method and Description |
|---|---|
static MockMvcAuthenticationScheme |
RestAssuredMockMvc.authentication(Object authentication)
Authenticate using the supplied authentication instance (
org.springframework.security.core.Authentication from Spring Security). |
static MockMvcAuthenticationScheme |
RestAssuredMockMvc.principal(Object principal)
Authenticate using the given principal.
|
static MockMvcAuthenticationScheme |
RestAssuredMockMvc.principal(Principal principal)
Authenticate using the given principal.
|
static MockMvcAuthenticationScheme |
RestAssuredMockMvc.principalWithCredentials(Object principal,
Object credentials,
String... authorities)
Authenticate using the given principal and credentials.
|
| Constructor and Description |
|---|
MockMvcRequestSpecificationImpl(org.springframework.test.web.servlet.MockMvc mockMvc,
RestAssuredMockMvcConfig config,
List<org.springframework.test.web.servlet.ResultHandler> resultHandlers,
String basePath,
MockMvcRequestSpecification requestSpecification,
ResponseSpecification responseSpecification,
MockMvcAuthenticationScheme authentication) |
| Modifier and Type | Method and Description |
|---|---|
MockMvcRequestSpecBuilder |
MockMvcRequestSpecBuilder.setAuth(MockMvcAuthenticationScheme auth)
If you need to specify some credentials when performing a request.
|
Copyright © 2010–2014. All rights reserved.