[Groovy] Class MockInterceptor
- groovy.mock.interceptor.MockInterceptor
- All Implemented Interfaces and Traits:
- PropertyAccessInterceptor
class MockInterceptor
Intercepting calls to the collaborating object and notify the expectation object.
- Authors:
- Dierk Koenig
Properties Summary
Type | Name and description |
---|---|
def |
expectation |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
def |
afterInvoke(Object object, String methodName, Object[] arguments, Object result) | |
def |
beforeGet(Object object, String property) | |
def |
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
def expectation
Method Detail
def afterInvoke(Object object, String methodName, Object[] arguments, Object result)
def beforeGet(Object object, String property)
def 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/2.4.21/html/gapi/groovy/mock/interceptor/MockInterceptor.html