Package | Description |
---|---|
io.restassured | |
io.restassured.builder | |
io.restassured.config | |
io.restassured.internal | |
io.restassured.internal.mapping | |
io.restassured.response | |
io.restassured.specification |
Modifier and Type | Method and Description |
---|---|
static void |
RestAssured.objectMapper(ObjectMapper objectMapper)
Set a object mapper that'll be used when serializing and deserializing Java objects to and from it's
document representation (XML, JSON etc).
|
Modifier and Type | Method and Description |
---|---|
RequestSpecBuilder |
RequestSpecBuilder.setBody(Object object,
ObjectMapper 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.
|
RequestSpecBuilder |
RequestSpecBuilder.setContent(Object object,
ObjectMapper mapper)
Deprecated.
Use #setBody(Object, ObjectMapper) instead
|
Constructor and Description |
---|
MultiPartSpecBuilder(Object content,
ObjectMapper objectMapper)
Create a new multi-part specification with control name equal to file.
|
Modifier and Type | Method and Description |
---|---|
ObjectMapper |
ObjectMapperConfig.defaultObjectMapper() |
Modifier and Type | Method and Description |
---|---|
ObjectMapperConfig |
ObjectMapperConfig.defaultObjectMapper(ObjectMapper defaultObjectMapper)
Creates an object mapper configuration that uses the specified object mapper as default.
|
Constructor and Description |
---|
ObjectMapperConfig(ObjectMapper defaultObjectMapper)
Creates an object mapper configuration that uses the specified object mapper as default.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
RestAssuredResponseOptionsImpl.as(Class<T> cls,
ObjectMapper mapper) |
<T> T |
RestAssuredResponseOptionsGroovyImpl.as(Class<T> cls,
ObjectMapper mapper) |
RequestSpecification |
RequestSpecificationImpl.body(Object object,
ObjectMapper mapper) |
RequestSpecification |
RequestSpecificationImpl.content(Object object,
ObjectMapper mapper) |
Modifier and Type | Class and Description |
---|---|
class |
GsonMapper |
class |
Jackson1Mapper |
class |
Jackson2Mapper |
class |
JaxbMapper |
Modifier and Type | Method and Description |
---|---|
<T> T |
ResponseBodyExtractionOptions.as(Class<T> cls,
ObjectMapper mapper)
Get the body and map it to a Java object using a specific object mapper.
|
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecification.body(Object object,
ObjectMapper 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.
|
RequestSpecification |
RequestSpecification.content(Object object,
ObjectMapper mapper)
Deprecated.
Use
RequestSpecification.body(Object, ObjectMapper) instead |
Copyright © 2010–2016. All rights reserved.