Modifier and Type | Method and Description |
---|---|
static void |
RestAssured.enableLoggingOfRequestAndResponseIfValidationFails(LogDetail logDetail)
Enable logging of both the request and the response if REST Assureds test validation fails with the specified log detail.
|
Modifier and Type | Method and Description |
---|---|
LogDetail |
FormAuthConfig.getLogDetail() |
Modifier and Type | Method and Description |
---|---|
FormAuthConfig |
FormAuthConfig.withLoggingEnabled(LogDetail logDetail)
Enables logging with the supplied logDetail of the request made to authenticate using form authentication.
|
FormAuthConfig |
FormAuthConfig.withLoggingEnabled(LogDetail logDetail,
LogConfig logConfig)
Enables logging with the supplied log detail of the request made to authenticate using form authentication using the
specified
LogConfig . |
Modifier and Type | Method and Description |
---|---|
RequestSpecBuilder |
RequestSpecBuilder.log(LogDetail logDetail)
Enabled logging with the specified log detail.
|
Modifier and Type | Method and Description |
---|---|
LogDetail |
LogConfig.logDetailOfRequestAndResponseIfValidationFails() |
Modifier and Type | Method and Description |
---|---|
LogConfig |
LogConfig.enableLoggingOfRequestAndResponseIfValidationFails(LogDetail logDetail)
Enable logging of both the request and the response if REST Assureds test validation fails with the specified log detail
|
Modifier and Type | Method and Description |
---|---|
static LogDetail |
LogDetail.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogDetail[] |
LogDetail.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Filter |
ResponseLoggingFilter.logResponseTo(PrintStream stream,
LogDetail logDetail)
Create a new logging filter without using the "new" operator.
|
Constructor and Description |
---|
RequestLoggingFilter(LogDetail logDetail)
Logs with a specific detail to System.out
|
RequestLoggingFilter(LogDetail logDetail,
boolean shouldPrettyPrint,
PrintStream stream)
Instantiate a logger using a specific print stream and a specific log detail
|
RequestLoggingFilter(LogDetail logDetail,
boolean shouldPrettyPrint,
PrintStream stream,
boolean showUrlEncodedUri)
Instantiate a logger using a specific print stream and a specific log detail
|
RequestLoggingFilter(LogDetail logDetail,
PrintStream stream)
Instantiate a logger using a specific print stream and a specific log detail.
|
ResponseLoggingFilter(LogDetail logDetail)
Instantiate a logger using the supplied log detail.
|
ResponseLoggingFilter(LogDetail logDetail,
boolean shouldPrettyPrint,
PrintStream stream)
Instantiate a logger using a specific print stream for all status codes
|
ResponseLoggingFilter(LogDetail logDetail,
boolean prettyPrint,
PrintStream stream,
int statusCode)
Instantiate a logger using a specific print stream for status codes matching the supplied status code.
|
ResponseLoggingFilter(LogDetail logDetail,
boolean prettyPrint,
PrintStream stream,
org.hamcrest.Matcher<Integer> matcher)
Instantiate a logger using a specific print stream for status codes matching the supplied matcher.
|
ResponseLoggingFilter(LogDetail logDetail,
PrintStream stream)
Instantiate a logger using a specific print stream for all status codes
|
ResponseLoggingFilter(LogDetail logDetail,
PrintStream stream,
int statusCode)
Instantiate a logger using a specific print stream for status codes matching the supplied status code.
|
ResponseLoggingFilter(LogDetail logDetail,
PrintStream stream,
org.hamcrest.Matcher<Integer> matcher)
Instantiate a logger using a specific print stream for status codes matching the supplied matcher.
|
Modifier and Type | Method and Description |
---|---|
T |
ValidatableResponseOptionsImpl.ifValidationFails(LogDetail logDetail) |
RequestSpecification |
RequestLogSpecificationImpl.ifValidationFails(LogDetail logDetail) |
ResponseSpecification |
ResponseLogSpecificationImpl.ifValidationFails(LogDetail logDetail) |
T |
ValidatableResponseOptionsImpl.ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint) |
RequestSpecification |
RequestLogSpecificationImpl.ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint) |
ResponseSpecification |
ResponseLogSpecificationImpl.ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint) |
Modifier and Type | Method and Description |
---|---|
static String |
RequestPrinter.print(FilterableRequestSpecification requestSpec,
String requestMethod,
String completeRequestUri,
LogDetail logDetail,
PrintStream stream,
boolean shouldPrettyPrint) |
static String |
ResponsePrinter.print(ResponseOptions responseOptions,
ResponseBody responseBody,
PrintStream stream,
LogDetail logDetail,
boolean shouldPrettyPrint)
Prints the response to the print stream
|
Modifier and Type | Method and Description |
---|---|
T |
ValidatableResponseLogSpec.ifValidationFails(LogDetail logDetail)
Logs with the supplied log detail only if the validation fails.
|
T |
ValidatableResponseLogSpec.ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint)
Logs all parameters only if the validations fail.
|
Modifier and Type | Method and Description |
---|---|
T |
LogSpecification.ifValidationFails(LogDetail logDetail)
Logs with the supplied log detail only if the validation fails.
|
T |
LogSpecification.ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint)
Logs all parameters only if the validations fail.
|
Copyright © 2010–2017. All rights reserved.