Modifier and Type | Method and Description |
---|---|
RequestSpecBuilder |
RequestSpecBuilder.setBody(Object object,
ObjectMapperType mapperType)
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.
|
Constructor and Description |
---|
MultiPartSpecBuilder(Object content,
ObjectMapperType objectMapperType)
Create a new multi-part specification with control name equal to file.
|
Modifier and Type | Method and Description |
---|---|
ObjectMapperType |
ObjectMapperConfig.defaultObjectMapperType() |
Modifier and Type | Method and Description |
---|---|
ObjectMapperConfig |
ObjectMapperConfig.defaultObjectMapperType(ObjectMapperType defaultObjectMapperType)
Creates an object mapper configuration that uses the specified object mapper as default.
|
Constructor and Description |
---|
ObjectMapperConfig(ObjectMapperType defaultObjectMapperType)
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,
ObjectMapperType mapperType) |
<T> T |
RestAssuredResponseOptionsImpl.as(Type cls,
ObjectMapperType mapperType) |
<T> T |
RestAssuredResponseOptionsGroovyImpl.as(Type cls,
ObjectMapperType mapperType,
ResponseBodyData responseBodyData) |
RequestSpecification |
RequestSpecificationImpl.body(Object object,
ObjectMapperType mapperType) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ObjectMapping.deserialize(ResponseBodyData response,
Type cls,
String contentType,
String defaultContentType,
String charset,
ObjectMapperType mapperType,
ObjectMapperConfig objectMapperConfig) |
static String |
ObjectMapping.serialize(Object object,
String contentType,
String charset,
ObjectMapperType mapperType,
ObjectMapperConfig config,
EncoderConfig encoderConfig) |
Modifier and Type | Method and Description |
---|---|
static ObjectMapperType |
ObjectMapperType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectMapperType[] |
ObjectMapperType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ResponseBodyExtractionOptions.as(Class<T> cls,
ObjectMapperType mapperType)
Get the body and map it to a Java object using a specific object mapper type.
|
<T> T |
ResponseBodyExtractionOptions.as(Type cls,
ObjectMapperType mapperType)
Get the body and map it to a Java type with specified type using a specific object mapper type.
|
Modifier and Type | Method and Description |
---|---|
RequestSpecification |
RequestSpecification.body(Object object,
ObjectMapperType mapperType)
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.
|
Copyright © 2010–2022. All rights reserved.