Class ZeebeTestEngineProxy
java.lang.Object
io.camunda.zeebe.spring.test.proxy.AbstractInvocationHandler
io.camunda.zeebe.spring.test.proxy.ZeebeTestEngineProxy
- All Implemented Interfaces:
InvocationHandler
Dynamic proxy to delegate to a
ZeebeTestEngine which allows to swap the ZeebeTestEngine object under the hood. This is used in test environments, where the while
ZeebeEngine is re-initialized for every test case-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjecthandleInvocation(Object proxy, Method method, @Nullable Object[] args) AbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])delegates to this method upon any method invocation on the proxy instance, exceptObject.equals(java.lang.Object),Object.hashCode()andObject.toString().voidvoidswapZeebeEngine(io.camunda.zeebe.process.test.api.ZeebeTestEngine client) Methods inherited from class io.camunda.zeebe.spring.test.proxy.AbstractInvocationHandler
equals, hashCode, invoke, toString
-
Constructor Details
-
ZeebeTestEngineProxy
public ZeebeTestEngineProxy()
-
-
Method Details
-
swapZeebeEngine
public void swapZeebeEngine(io.camunda.zeebe.process.test.api.ZeebeTestEngine client) -
removeZeebeEngine
public void removeZeebeEngine() -
handleInvocation
protected Object handleInvocation(Object proxy, Method method, @Nullable Object[] args) throws Throwable Description copied from class:AbstractInvocationHandlerAbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])delegates to this method upon any method invocation on the proxy instance, exceptObject.equals(java.lang.Object),Object.hashCode()andObject.toString(). The result will be returned as the proxied method's return value.Unlike
AbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]),argswill never be null. When the method has no parameter, an empty array is passed in.- Specified by:
handleInvocationin classAbstractInvocationHandler- Throws:
Throwable
-