Mockito for beginners

Mockito for beginners

Mocking void method:

doNothing().when(couponRepository).deleteAll(Mockito.any());

Note: here deleteAll method is void method.

434 total views, 4 views today

About Mirthbees 678 Articles
Blogger, Innovator, Developer and Enterpreneur. Founder of GuruRecharge, Readymade online recharge script. Lead Developer in Bookrate.in

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.