I have multiple mock statements in my test class and everything works fine. I am adding a new statement for a DAO mocking as :
Mockito.when(myDAO.saveOrUpdate(Mockito.any())).thenReturn(Mockito.any());
But I get exception as :
org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Invalid use of argument matchers!
I have used argument matchers and not raw values so I have not mixed anything.What can be the cause here?