janstk / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

Mockito.inOrder(...) should report which arguments are not mocks #334

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Here is a simple example:

SomeClass mock = Mokito.mock(SomeClass.class);
RealObject realObject = new RealObject();

InOrder order = Mockito.inOrder(realObject, mock);

I would expect an exception like:
   "Argument at position(1) is not a mock!"
or "Arguments at positions(1, 7, 2) are not a mocks!"

I see:
"Argument(s) passed is not a mock!"

Original issue reported on code.google.com by jsa...@google.com on 13 Apr 2012 at 9:16

GoogleCodeExporter commented 8 years ago

Original comment by brice.du...@gmail.com on 16 Apr 2012 at 7:09