Skip to content

Commit

Permalink
fix: Trigger date time type change (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitolo-Andrea authored Jul 19, 2024
1 parent 6ea15d7 commit 8b6fe1c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/main/java/it/gov/pagopa/message/core/dto/MessageDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@Data
@NoArgsConstructor
@Builder
public class MessageDTO {
private String messageId;
private String recipientId;
private LocalDateTime triggerDateTime;
private String triggerDateTime;
private String senderDescription;
private String messageUrl;
private String originId;
private String message;


}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import lombok.Builder;
import lombok.Data;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;


@Data
@Builder
public class Message {
private String messageId;
private String hashedFiscalCode;
private LocalDateTime originalRegistrationDate;
private String originalRegistrationDate;
private String originalSender;
private String originId;
private String messageUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
@WebMvcTest(MessageCoreControllerImpl.class)
class MessageCoreControllerTest {


@MockBean
private MessageCoreServiceImpl messageCoreService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import it.gov.pagopa.message.core.dto.MessageDTO;

import java.time.LocalDateTime;

public class MessageDTOFaker {

private MessageDTOFaker(){}
Expand All @@ -12,7 +10,7 @@ public static MessageDTO mockInstance() {
.messageId("messageId")
.messageUrl("messageUrl")
.message("message")
.triggerDateTime(LocalDateTime.now())
.triggerDateTime("triggerDateTime")
.senderDescription("sender")
.recipientId("recipientId")
.originId("originId")
Expand Down

0 comments on commit 8b6fe1c

Please sign in to comment.