[Groovy] Class MockInterceptor
- groovy.mock.interceptor.MockInterceptor
- All Implemented Interfaces and Traits:
- PropertyAccessInterceptor
class MockInterceptor extends Object implements PropertyAccessInterceptor
Intercepting calls to the collaborating object and notify the expectation object.
Properties Summary
Type | Name and description |
---|---|
Object |
expectation |
Constructor Summary
Constructor and description |
---|
MockInterceptor
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
Object |
afterInvoke(Object object, String methodName, Object[] arguments, Object result) | |
Object |
beforeGet(Object object, String property) | |
Object |
beforeInvoke(Object object, String methodName, Object[] arguments) | |
void |
beforeSet(Object object, String property, Object newValue) | |
boolean |
doInvoke() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail
Object expectation
Constructor Detail
MockInterceptor()
Method Detail
Object afterInvoke(Object object, String methodName, Object[] arguments, Object result)
Object beforeGet(Object object, String property)
Object beforeInvoke(Object object, String methodName, Object[] arguments)
void beforeSet(Object object, String property, Object newValue)
boolean doInvoke()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/mock/interceptor/MockInterceptor.html