BAEL-2512 - Add a new section in Mockito Spy article
This commit is contained in:
parent
96adba789d
commit
4826f19d00
|
@ -17,6 +17,7 @@ public class MockitoMisusingUnitTest {
|
|||
public void givenNotASpy_whenDoReturn_thenThrowNotAMock() {
|
||||
try {
|
||||
List<String> list = new ArrayList<String>();
|
||||
|
||||
Mockito.doReturn(100)
|
||||
.when(list)
|
||||
.size();
|
||||
|
|
Loading…
Reference in New Issue