I am writing a JUnit test case that wants to check if a specific file with some content has been added or not. In this case, I want to get an instance of the file before its modification and another instance of the file of the same file after the modification, and I want to check if both are equal. How to do it in Java Junit?
source
share