From 5edd8d52335ffc9bbac4e17262c41a827ec57c5b Mon Sep 17 00:00:00 2001 From: martin-nhs Date: Wed, 29 Nov 2023 14:58:41 +0000 Subject: [PATCH] [PRMT-4112] Commented out test which is not required. To be added back when PRMT-4201 is reverted. --- .../services/BrokerTest.java | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/test/java/uk/nhs/prm/repo/ehrtransferservice/services/BrokerTest.java b/src/test/java/uk/nhs/prm/repo/ehrtransferservice/services/BrokerTest.java index 8824aeebe..28f1dcfe0 100644 --- a/src/test/java/uk/nhs/prm/repo/ehrtransferservice/services/BrokerTest.java +++ b/src/test/java/uk/nhs/prm/repo/ehrtransferservice/services/BrokerTest.java @@ -133,18 +133,19 @@ void shouldSendUnreckognizedMessagesToDlq() { verify(parsingDlqPublisher).sendMessage(any()); } - @Test - void shouldPublishMessageWithoutKnownConversationIdToEhrInUnhandledTopic() { - String messageBody = "ehr-request"; - UUID conversationId = UUID.randomUUID(); - var parsedMessage = getMockParsedMessageWithoutInteractionId(messageBody, conversationId); - - when(transferStore.isConversationIdPresent(conversationId.toString())).thenReturn(false); - - broker.sendMessageToEhrInOrUnhandled(parsedMessage); - - verify(ehrInUnhandledMessagePublisher).sendMessage("ehr-request", conversationId); - } + // TODO - Will be required when we revert back from PRMT-4201 + // @Test + // void shouldPublishMessageWithoutKnownConversationIdToEhrInUnhandledTopic() { + // String messageBody = "ehr-request"; + // UUID conversationId = UUID.randomUUID(); + // var parsedMessage = getMockParsedMessageWithoutInteractionId(messageBody, conversationId); + // + // when(transferStore.isConversationIdPresent(conversationId.toString())).thenReturn(false); + // + // broker.sendMessageToEhrInOrUnhandled(parsedMessage); + // + // verify(ehrInUnhandledMessagePublisher).sendMessage("ehr-request", conversationId); + // } @Test void shouldNotPublishMessageWithKnownConversationIdToEhrInUnhandledTopic() {