public final class FluentMessageCorrelationBuilderAnswer extends Object implements org.mockito.stubbing.Answer<org.camunda.bpm.engine.runtime.MessageCorrelationBuilder>
| Constructor and Description |
|---|
FluentMessageCorrelationBuilderAnswer() |
| Modifier and Type | Method and Description |
|---|---|
org.camunda.bpm.engine.runtime.MessageCorrelationBuilder |
answer(org.mockito.invocation.InvocationOnMock invocation)
Returns the mock itself if return type and mock type match (assume fluent
api).
|
static org.camunda.bpm.engine.runtime.MessageCorrelationBuilder |
createMock()
Create builder mock with fluent answer.
|
public FluentMessageCorrelationBuilderAnswer()
public static org.camunda.bpm.engine.runtime.MessageCorrelationBuilder createMock()
public org.camunda.bpm.engine.runtime.MessageCorrelationBuilder answer(@Nonnull org.mockito.invocation.InvocationOnMock invocation) throws Throwable
answer in interface org.mockito.stubbing.Answer<org.camunda.bpm.engine.runtime.MessageCorrelationBuilder>invocation - the method invocation. If its return type equals the mock type,
just return the mock.Throwable - when anything failsCopyright © 2020 Camunda Services GmbH. All rights reserved.