Skip to content
  • Home
  • About
Search
Close

Yiğit Darçın's Blog

Day: March 15, 2016

ArgumentCaptor a List

March 15, 2016June 11, 2016 yigitdarcinLeave a comment

by just declaring the captor as :

@Captor
private ArgumentCaptor<List<SomeObject>> captor;

and verify'ing by

verify(someService).someMethod(captor.capture());

you can captor a list.

Blogs

March 2016
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Oct   Apr »

RSS

  • RSS - Posts
  • RSS - Comments

Archives

“You can’t rely on anyone these days, you gotta do everything yourself, don’t we? That’s ok, I came prepared, it’s a funny world we live in. Speaking of which, you know how I got these scars?”
Create a free website or blog at WordPress.com.
Back to top
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy