Skip to content

Commit

Permalink
[PRMT-4112] Commented out test which is not required. To be added bac…
Browse files Browse the repository at this point in the history
…k when PRMT-4201 is reverted.
  • Loading branch information
martin-nhs committed Nov 29, 2023
1 parent bb11fb8 commit 5edd8d5
Showing 1 changed file with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5edd8d5

Please sign in to comment.