public class RunRunnableAnswer extends Object implements org.mockito.stubbing.Answer<Object>
Runnable
. It will execute the given closure.
Example: doAnswer(runRunnable()).when(permissionManager).withExemption(any(Runnable.class));
Constructor and Description |
---|
RunRunnableAnswer() |
Modifier and Type | Method and Description |
---|---|
Object |
answer(org.mockito.invocation.InvocationOnMock invocation) |
static RunRunnableAnswer |
runRunnable() |
public static RunRunnableAnswer runRunnable()
Copyright © 2003–2020 Atlassian. All rights reserved.