Open infinite opened 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"
From Sven Felix Oberquelle on 2014-04-16 15:30:05+00:00
Same issue like #6
From loomis on 2014-04-16 18:05:53+00:00
Let me take a look.
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"