Solved
Junit5, Mockito for catch block for tidyJsonItemWriter.dump
How to cover the catch block for tidyJsonItemWriter.dump() method
How to cover the catch block for tidyJsonItemWriter.dump() method
@anilc27140375
Please have a look into below link, it's not exact the same thing. But it might help.
https://www.codejava.net/testing/junit-test-exception-examples-how-to-assert-an-exception-is-thrown
Thanks,
Nikhil
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.