From 49cd80cf61eb2aabaf3dbeb086a191db4a6fb552 Mon Sep 17 00:00:00 2001 From: Thorsten Schlathoelter Date: Thu, 28 Sep 2023 22:39:56 +0200 Subject: [PATCH] fix: Remove duplicate code --- .../org/citrusframework/actions/ReceiveMessageAction.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/citrus-base/src/main/java/org/citrusframework/actions/ReceiveMessageAction.java b/core/citrus-base/src/main/java/org/citrusframework/actions/ReceiveMessageAction.java index 3a14b6485e..4545567569 100644 --- a/core/citrus-base/src/main/java/org/citrusframework/actions/ReceiveMessageAction.java +++ b/core/citrus-base/src/main/java/org/citrusframework/actions/ReceiveMessageAction.java @@ -239,12 +239,6 @@ protected void validateMessage(Message message, TestContext context) { logger.debug("Control message:\n" + controlMessage.print(context)); } - if (StringUtils.hasText(controlMessage.getName())) { - context.getMessageStore().storeMessage(controlMessage.getName(), message); - } else { - context.getMessageStore().storeMessage(context.getMessageStore().constructMessageName(this, getOrCreateEndpoint(context)), message); - } - if (!CollectionUtils.isEmpty(validators)) { for (MessageValidator messageValidator : validators) { messageValidator.validateMessage(message, controlMessage, context, validationContexts);