How to cover the catch block for tidyJsonItemWriter.dump() method
Solved! Go to Solution.
Views
Replies
Total Likes
@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
@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
Hi @anilc27140375,
Can you let know if you are printing log message or any logic is handled in catch block for JSONException, RepositoryException and/or ValueFormatException part of dump method
Views
Likes
Replies
Views
Likes
Replies