I am trying to test the following code without using a real xls file ...
File file = new File("file.xls"); final FileInputStream input = new FileInputStream(file);
My problem is that I cannot create an instance of the file, and I do not know how to mimic. I am creating a new file and how to taunt what to expect.
Is there a way to do this with junit?
thanks
source share