Closed picimako closed 1 year ago
Mockito 5.4.0 throws an exception when a mock object is passed into Mockito.spy(). See
Mockito.spy()
Mockito.spy(Mockito.mock(Type.class))
Mockito.spy(<object annotated with @Mock>)
Completed in v0.11.0.
Summary
Mockito 5.4.0 throws an exception when a mock object is passed into
Mockito.spy()
. SeeTasks
Mockito.spy()
being passed in a mock object. Constructs can be like:Mockito.spy(Mockito.mock(Type.class))
Mockito.spy(<object annotated with @Mock>)
Questions
Mockito.spy()
as well?