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;
|
import org.mockito.stubbing.Answer;
|
||||||
|
|
||||||
public class MockitoMockTest {
|
public class MockitoMockTest {
|
||||||
static class CustomAnswer implements Answer<Boolean> {
|
|
||||||
|
private static class CustomAnswer implements Answer<Boolean> {
|
||||||
@Override
|
@Override
|
||||||
public Boolean answer(InvocationOnMock invocation) throws Throwable {
|
public Boolean answer(InvocationOnMock invocation) throws Throwable {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user