How to test IO code in JUnit?
- by add
I'm want to test two services:
service which builds file name
service which writes some data into file provided by 1st service
In first i'm building some complex file structure (just for example {user}/{date}/{time}/{generatedId}.bin)
In second i'm writing data to the file passed by first service (1st service calls 2nd service)
How can I test…