Replace Mockito argument captors with assertArg
Fixes #34943
Comment From: pivotal-cla
@Ckram Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-cla
@Ckram Thank you for signing the Contributor License Agreement!
Comment From: mhalbritter
Thank you very much and congratulations on your first contribution :tada:!
Comment From: wilkinsona
I think there are some more places where we can use assertArg. I started polishing in https://github.com/wilkinsona/spring-boot/commit/33b8dfbf35ab196ea0d6a1d16405a63924e6a8c6 I stopped as I reached a place where https://github.com/mockito/mockito/issues/2982 would be useful. I think it'd be nice to move over everywhere we can without the enhancement though.