My program needs to interact to a directory (with a hierarchical structure) a lot and I need to test it. Therefore, I need to create a directory (and then create sub dirs and files) during the JUnit and then delete this directory after the test.
Is there a good way to do this conveniently?
Look at the methods on java.io.File. If it isn’t a good fit, explain why.