Home » Java » Effective way to JUnit Java File IO-Exceptionshub

Effective way to JUnit Java File IO-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have a utility Java class main method, which using Java File API reads image (png, jpg etc.) from a specified location in Filesystem and using a provided client jar using XStream uploads to their service.

What are effective ways to write Junit for such a setup?

How to&Answers: