From f0c96ba0272587f3a8ffb88c35edb88f4c3b9a55 Mon Sep 17 00:00:00 2001 From: Henning Gerhardt Date: Tue, 11 Jun 2024 15:28:34 +0200 Subject: [PATCH] Sort list for correct test comparing --- .../kitodo/production/services/calendar/CalendarServiceIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }