Open GoogleCodeExporter opened 8 years ago
It depends. In TestNG assertEquals has arguments inverted :).
Original comment by msz...@wp.pl
on 13 Sep 2014 at 6:40
I am sorry, I was mixed with my test case. It depends on the testNG and I
agree. I had similar code and I used
`
assertThat(argument.getValue().getName(), "John");
`
Please consider this ticket as not a bug and close it.
Thanks,
-Kuppa
Original comment by sridhara...@gmail.com
on 13 Sep 2014 at 6:56
ArgumentCaptor argument = ArgumentCaptor.forClass(Person.class);
verify(mock).doSomething(argument.capture());
assertEquals(argument.getValue().getName(), "John");
Original issue reported on code.google.com by
sridhara...@gmail.com
on 13 Sep 2014 at 5:58