Skip to content
Snippets Groups Projects
Commit 2b563d48 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-6240 Remove unnecessary requestId

parent 68fe833b
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ public interface ResponseMapper { ...@@ -35,7 +35,6 @@ public interface ResponseMapper {
XtaIdentifier mapIdentifierFromPartyIdentifierType(PartyIdentifierType partyIdentifierType); XtaIdentifier mapIdentifierFromPartyIdentifierType(PartyIdentifierType partyIdentifierType);
@Mapping(target = "requestId", source = "response.msgBoxRequestID")
@Mapping(target = "pendingMessageCount", source = "response.itemsPending", defaultValue = "0") @Mapping(target = "pendingMessageCount", source = "response.itemsPending", defaultValue = "0")
@Mapping(target = "messages", source = "msgStatusListType.messageMetaData") @Mapping(target = "messages", source = "msgStatusListType.messageMetaData")
XtaMessageMetaDataListing mapXtaMessageMetaListing(MsgStatusListType msgStatusListType, MsgBoxResponseType response); XtaMessageMetaDataListing mapXtaMessageMetaListing(MsgStatusListType msgStatusListType, MsgBoxResponseType response);
......
...@@ -4,7 +4,6 @@ import java.math.BigInteger; ...@@ -4,7 +4,6 @@ import java.math.BigInteger;
import java.util.List; import java.util.List;
import jakarta.validation.Valid; import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero; import jakarta.validation.constraints.PositiveOrZero;
...@@ -12,7 +11,6 @@ import lombok.Builder; ...@@ -12,7 +11,6 @@ import lombok.Builder;
@Builder @Builder
public record XtaMessageMetaDataListing( public record XtaMessageMetaDataListing(
@NotBlank String requestId,
@PositiveOrZero BigInteger pendingMessageCount, @PositiveOrZero BigInteger pendingMessageCount,
@NotNull @Valid List<XtaMessageMetaData> messages @NotNull @Valid List<XtaMessageMetaData> messages
) { ) {
......
...@@ -64,15 +64,6 @@ class ResponseMapperTest { ...@@ -64,15 +64,6 @@ class ResponseMapperTest {
.createWithNoPendingMessages(); .createWithNoPendingMessages();
} }
@DisplayName("should map request Id")
@Test
void shouldMapRequestId() {
var result = mapper.mapXtaMessageMetaListing(
msgStatusListType, msgBoxResponseTypeWithPendingMessages);
assertThat(result.requestId()).isEqualTo(MSG_BOX_REQUEST_ID);
}
@DisplayName("should map pending message count") @DisplayName("should map pending message count")
@Test @Test
void shouldMapPendingMessageCount() { void shouldMapPendingMessageCount() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment