| 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)
Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request using a specific object mapper.
|
| 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)
Specify an Object request content that will automatically be serialized to JSON or XML and sent with the request using a specific object mapper.
|
Copyright © 2010–2014. All rights reserved.