//when
new FileTools().createBackup(fileToBackup);
//then
- assertThat(fileToBackup.equals(new File(backupFilePath)));
+ assertThat(fileToBackup).hasSameBinaryContentAs(new File(backupFilePath));
}
@Test
//when
new FileTools().copy(sourceFile, destinationFile);
//then
- assertThat(sourceFile.equals(destinationFile));
+ assertThat(sourceFile).hasSameBinaryContentAs(destinationFile);
}