public class LogRequestAndResponseOnFailListener extends Object implements ResponseValidationFailureListener, groovy.lang.GroovyObject
Constructor and Description |
---|
LogRequestAndResponseOnFailListener() |
Modifier and Type | Method and Description |
---|---|
groovy.lang.MetaClass |
getMetaClass() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
void |
onFailure(RequestSpecification requestSpecification,
ResponseSpecification responseSpecification,
Response response)
Called when a failure occurs
|
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
public void onFailure(RequestSpecification requestSpecification, ResponseSpecification responseSpecification, Response response)
ResponseValidationFailureListener
onFailure
in interface ResponseValidationFailureListener
requestSpecification
- The request specificationresponseSpecification
- The reponse specificationresponse
- The actual responsepublic groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
Copyright © 2010–2019. All rights reserved.