diff --git a/Kitodo/src/test/java/org/kitodo/production/services/calendar/CalendarServiceIT.java b/Kitodo/src/test/java/org/kitodo/production/services/calendar/CalendarServiceIT.java index 206801b08f8..084606f573a 100644 --- a/Kitodo/src/test/java/org/kitodo/production/services/calendar/CalendarServiceIT.java +++ b/Kitodo/src/test/java/org/kitodo/production/services/calendar/CalendarServiceIT.java @@ -132,7 +132,7 @@ public void shouldGetMetadataSummary() throws DAOException, DataException, IOExc List actualMetadataSummary = CalendarService.getMetadataSummary(block).stream() .map(entry -> entry.getKey().getLabel() + " - " + entry.getValue().toString()) - .collect(Collectors.toList()); + .sorted().collect(Collectors.toList()); List expectedMetadataSummary = Arrays.asList("Process title - 2024-03-04", "Signatur - 2024-03-05"); assertEquals(expectedMetadataSummary, actualMetadataSummary); }