public class RequestLogSpecificationImpl extends LogSpecificationImpl implements RequestLogSpecification, groovy.lang.GroovyObject
| Constructor and Description |
|---|
RequestLogSpecificationImpl() |
| Modifier and Type | Method and Description |
|---|---|
RequestSpecification |
all()
Logs everything in the specification, including e.g.
|
RequestSpecification |
all(boolean shouldPrettyPrint)
Logs everything in the specification, including e.g.
|
RequestSpecification |
body()
Logs only the content of the body.
|
RequestSpecification |
body(boolean shouldPrettyPrint)
Logs only the content of the body and pretty-print the body if specified.
|
RequestSpecification |
cookies()
Logs only the cookies.
|
RequestSpecification |
everything()
* Logs everything in the specification, including e.g.
|
RequestSpecification |
everything(boolean shouldPrettyPrint)
* Logs everything in the specification, including e.g.
|
LogRepository |
getLogRepository() |
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
RequestSpecification |
getRequestSpecification() |
RequestSpecification |
headers()
Logs only the headers.
|
RequestSpecification |
ifValidationFails()
Logs everything if a test validation fails.
|
RequestSpecification |
ifValidationFails(LogDetail logDetail)
Logs with the supplied log detail only if the validation fails.
|
RequestSpecification |
ifValidationFails(LogDetail logDetail,
boolean shouldPrettyPrint)
Logs all parameters only if the validations fail.
|
Object |
invokeMethod(String method,
Object arguments) |
RequestSpecification |
parameters()
Logs only the parameters of the request.
|
RequestSpecification |
params()
Logs only the parameters of the request.
|
void |
setLogRepository(LogRepository value) |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
void |
setRequestSpecification(RequestSpecification value) |
getPrintStream, shouldPrettyPrintpublic groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class LogSpecificationImplpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class LogSpecificationImplpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class LogSpecificationImplpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class LogSpecificationImplpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class LogSpecificationImplpublic RequestSpecification getRequestSpecification()
public void setRequestSpecification(RequestSpecification value)
public LogRepository getLogRepository()
public void setLogRepository(LogRepository value)
public RequestSpecification params()
RequestLogSpecificationRequestLogSpecification.parameters() but slightly shorter syntax.params in interface RequestLogSpecificationpublic RequestSpecification parameters()
RequestLogSpecificationRequestLogSpecification.params() but more explicit syntax.parameters in interface RequestLogSpecificationpublic RequestSpecification body()
LogSpecificationbody in interface LogSpecification<RequestSpecification,Response>public RequestSpecification body(boolean shouldPrettyPrint)
LogSpecificationbody in interface LogSpecification<RequestSpecification,Response>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification all(boolean shouldPrettyPrint)
LogSpecificationall in interface LogSpecification<RequestSpecification,Response>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification everything(boolean shouldPrettyPrint)
LogSpecificationeverything in interface LogSpecification<RequestSpecification,Response>shouldPrettyPrint - true if the body should be pretty-printed, false otherwise.public RequestSpecification all()
LogSpecificationall in interface LogSpecification<RequestSpecification,Response>public RequestSpecification everything()
LogSpecificationeverything in interface LogSpecification<RequestSpecification,Response>public RequestSpecification headers()
LogSpecificationheaders in interface LogSpecification<RequestSpecification,Response>public RequestSpecification cookies()
LogSpecificationcookies in interface LogSpecification<RequestSpecification,Response>public RequestSpecification ifValidationFails()
LogSpecificationifValidationFails in interface LogSpecification<RequestSpecification,Response>public RequestSpecification ifValidationFails(LogDetail logDetail)
LogSpecificationifValidationFails in interface LogSpecification<RequestSpecification,Response>logDetail - The log detailpublic RequestSpecification ifValidationFails(LogDetail logDetail, boolean shouldPrettyPrint)
LogSpecificationifValidationFails in interface LogSpecification<RequestSpecification,Response>logDetail - The log detailshouldPrettyPrint - true if the body should be pretty-printed, false otherwise.Copyright © 2010–2014. All rights reserved.