Unit testing: temporary directories

If you are testing code that interacts wit the file system and want to avoid test collisions – JUnit  rules allow very flexible behavior of each test method in JUnit test case. For example, if you need to use a temporary directory for your tests – it will be deleted after the test completes or …

Unit testing: temporary directories Read More »