class MockInterceptor
extends Object
implements PropertyAccessInterceptor
Intercepting calls to the collaborating object and notify the expectation object.
| Type | Name and description |
|---|---|
Object |
expectationExpectation object that resolves and validates intercepted interactions. |
| Constructor and description |
|---|
MockInterceptor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Object |
afterInvoke(Object object, String methodName, Object[] arguments, Object result)Post-invocation hook required by the interceptor contract. |
|
Object |
beforeGet(Object object, String property)Resolves an intercepted property read against the configured expectation. |
|
Object |
beforeInvoke(Object object, String methodName, Object[] arguments)Resolves an intercepted method call against the configured expectation. |
|
void |
beforeSet(Object object, String property, Object newValue)Resolves an intercepted property write against the configured expectation. |
|
boolean |
doInvoke()Indicates whether the proxy should invoke the original implementation after interception. |
Expectation object that resolves and validates intercepted interactions.
Post-invocation hook required by the interceptor contract.
object - the invocation receivermethodName - the method namearguments - the invocation argumentsresult - the invocation resultnullResolves an intercepted property read against the configured expectation.
object - the property ownerproperty - the property nameResolves an intercepted method call against the configured expectation.
object - the invocation receivermethodName - the method namearguments - the invocation argumentsResolves an intercepted property write against the configured expectation.
object - the property owner or result holder used by the proxyproperty - the property namenewValue - the value being assignedIndicates whether the proxy should invoke the original implementation after interception.
false because this interceptor decides invocation explicitlyCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.