public static enum DslResponseAssertion.TargetField extends Enum<DslResponseAssertion.TargetField> implements EnumParam.EnumPropertyValue
| Enum Constant and Description |
|---|
REQUEST_BODY
Applies the assertion to the request body.
|
REQUEST_HEADERS
Applies the assertion to the set of request headers.
|
REQUEST_URL
Applies the assertion to the requested URL.
|
RESPONSE_BODY
Applies the assertion to the response body.
|
RESPONSE_BODY_AS_DOCUMENT
Applies the assertion to the text obtained through Apache Tika from the response body (which
might be a pdf, excel, etc.).
|
RESPONSE_CODE
Applies the assertion to the response code (eg: the HTTP response code, like 200).
|
RESPONSE_HEADERS
Applies the assertion to the set of response headers.
|
RESPONSE_MESSAGE
Applies the assertion to the response message (eg: the HTTP response message, like OK).
|
| Modifier and Type | Method and Description |
|---|---|
String |
propertyValue() |
static DslResponseAssertion.TargetField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DslResponseAssertion.TargetField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DslResponseAssertion.TargetField RESPONSE_BODY
public static final DslResponseAssertion.TargetField RESPONSE_BODY_AS_DOCUMENT
public static final DslResponseAssertion.TargetField RESPONSE_CODE
public static final DslResponseAssertion.TargetField RESPONSE_MESSAGE
public static final DslResponseAssertion.TargetField RESPONSE_HEADERS
public static final DslResponseAssertion.TargetField REQUEST_HEADERS
public static final DslResponseAssertion.TargetField REQUEST_URL
public static final DslResponseAssertion.TargetField REQUEST_BODY
public static DslResponseAssertion.TargetField[] values()
for (DslResponseAssertion.TargetField c : DslResponseAssertion.TargetField.values()) System.out.println(c);
public static DslResponseAssertion.TargetField valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String propertyValue()
propertyValue in interface EnumParam.EnumPropertyValueCopyright © 2023. All rights reserved.