I have this code:
when(mockedObject.play(any(Class.class))).thenReturn(object);
The header of the method play
is like this:
public Object play(Class<T> classz)
When I run my test I get this error:
The method
play(Class<T>)
is not applicable for the arguments(Class)
How should I fix this?