@@ -550,9 +550,9 @@ private void validateSampleData(String sampleType, String folderPath, List<File>
550
550
{
551
551
// verify fie download behavior
552
552
File downloadedFile = doAndWaitForDownload (() -> optionalFileLink .get ().click ());
553
- checker ().wrapAssertion (() -> Assertions .assertThat (TestFileUtils .getFileContents (downloadedFile ))
553
+ checker ().wrapAssertion (() -> Assertions .assertThat (TestFileUtils .getMD5Hash (downloadedFile . toPath () ))
554
554
.as ("expect the downloaded file to be the expected file" )
555
- .isEqualTo (TestFileUtils .getFileContents (file ))); // guard against renames like file2.xyz
555
+ .isEqualTo (TestFileUtils .getMD5Hash (file . toPath () ))); // guard against renames like file2.xyz
556
556
}
557
557
}
558
558
}
@@ -576,9 +576,9 @@ private void validateAssayRun(String assayName, String folderPath, String runNam
576
576
if (optionalFileLink .isPresent ())
577
577
{
578
578
var file = doAndWaitForDownload (()-> optionalFileLink .get ().click ());
579
- checker ().wrapAssertion (()-> Assertions .assertThat (TestFileUtils .getFileContents (file ))
579
+ checker ().wrapAssertion (()-> Assertions .assertThat (TestFileUtils .getMD5Hash (file . toPath () ))
580
580
.as ("expect the downloaded file to have equivalent content" )
581
- .isEqualTo (TestFileUtils .getFileContents (runFile )));
581
+ .isEqualTo (TestFileUtils .getMD5Hash (runFile . toPath () )));
582
582
}
583
583
584
584
var resultsPage = runsPage .clickAssayIdLink (runName );
@@ -644,9 +644,9 @@ private void validateDatasetData(String datasetName, String folderPath, List<Fil
644
644
{
645
645
// verify fie download behavior
646
646
File downloadedFile = doAndWaitForDownload (() -> optionalFileLink .get ().click ());
647
- checker ().wrapAssertion (() -> Assertions .assertThat (TestFileUtils .getFileContents (downloadedFile ))
647
+ checker ().wrapAssertion (() -> Assertions .assertThat (TestFileUtils .getMD5Hash (downloadedFile . toPath () ))
648
648
.as ("expect the downloaded file to be the expected file" )
649
- .isEqualTo (TestFileUtils .getFileContents (file ))); // guard against renames like file2.xyz
649
+ .isEqualTo (TestFileUtils .getMD5Hash (file . toPath () ))); // guard against renames like file2.xyz
650
650
}
651
651
}
652
652
}
0 commit comments