Fix assertions which do not test
Issue-ID: OOM-2526
Signed-off-by: tkogut <tomasz.kogut@nokia.com>
Change-Id: I4024cfee7c6da486db5ded1a9c33b0605691875b
//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);
}