Skip to content

Commit

Permalink
Merge pull request #107 from nhsconnect/PRMT-4112
Browse files Browse the repository at this point in the history
[PRMT-4112] Commented out test which is not required. To be added bac…
  • Loading branch information
martin-nhs authored Nov 29, 2023
2 parents a2239d9 + 5edd8d5 commit c9b639c
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 c9b639c

Please sign in to comment.