Skip to content

Commit

Permalink
Merge pull request kitodo#6103 from slub/fix_calendarserviceit_test
Browse files Browse the repository at this point in the history
Sort list for correct test comparing
  • Loading branch information
solth authored Jun 11, 2024
2 parents f8c9918 + f0c96ba commit 1092761
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void shouldGetMetadataSummary() throws DAOException, DataException, IOExc

List<String> actualMetadataSummary = CalendarService.getMetadataSummary(block).stream()
.map(entry -> entry.getKey().getLabel() + " - " + entry.getValue().toString())
.collect(Collectors.toList());
.sorted().collect(Collectors.toList());
List<String> expectedMetadataSummary = Arrays.asList("Process title - 2024-03-04", "Signatur - 2024-03-05");
assertEquals(expectedMetadataSummary, actualMetadataSummary);
}
Expand Down

0 comments on commit 1092761

Please sign in to comment.