infinite / mockito-flex

0 stars 0 forks source link

verify with wrong args throws bad error #41

Open infinite opened 10 years ago

infinite commented 10 years ago

When you verify on a method call with wrong arguments the error message is misleading and wrong.

mocked.method("wrong-argument");

verify().that(mocked.method("argument"));

throws an error saying "Wanted but not invoked at all" message.

I think it should throw an error saying "Wanted but not invoked with that arguments"

infinite commented 10 years ago

From Sven Felix Oberquelle on 2014-04-16 15:30:05+00:00

Same issue like #6

infinite commented 10 years ago

From loomis on 2014-04-16 18:05:53+00:00

Let me take a look.