Examples for Mockito's Mock Methods
This commit is contained in:
parent
94061d757b
commit
174e058cd0
|
@ -15,7 +15,8 @@ import org.mockito.invocation.InvocationOnMock;
|
|||
import org.mockito.stubbing.Answer;
|
||||
|
||||
public class MockitoMockTest {
|
||||
static class CustomAnswer implements Answer<Boolean> {
|
||||
|
||||
private static class CustomAnswer implements Answer<Boolean> {
|
||||
@Override
|
||||
public Boolean answer(InvocationOnMock invocation) throws Throwable {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue