Tim
0
Q:

org.mockito.exceptions.misusing.WrongTypeOfReturnValue

//use 
	doReturn(fooBar).when(bar).getFoo()
    
//instead of
	when(bar.getFoo()).thenReturn(fooBar)
7

New to Communities?

Join the community