From 5a83f89b720618c36cc93dbc9dcab9292b44cf60 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Wed, 19 Jun 2024 15:14:05 +0200 Subject: [PATCH] feature(refactoring):962 refactored e2e-test. --- .../test/validator/NotificationValidator.java | 10 ++++------ .../notification/response/NotificationResponse.java | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tx-cucumber-tests/src/test/java/org/eclipse/tractusx/traceability/test/validator/NotificationValidator.java b/tx-cucumber-tests/src/test/java/org/eclipse/tractusx/traceability/test/validator/NotificationValidator.java index 24d528c63e..c691e79693 100644 --- a/tx-cucumber-tests/src/test/java/org/eclipse/tractusx/traceability/test/validator/NotificationValidator.java +++ b/tx-cucumber-tests/src/test/java/org/eclipse/tractusx/traceability/test/validator/NotificationValidator.java @@ -65,18 +65,16 @@ public static void assertHasFields(NotificationResponse notification, Map messages; - public Optional latestNotification() { + public Optional latestMessage() { return messages.stream().max(Comparator.comparing(NotificationMessageResponse::getMessageDate)).stream().findFirst(); }