Skip to content

Commit

Permalink
fix: improve JWT mock DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
gb-cic committed Dec 14, 2023
1 parent 33bc8d1 commit b05bfe6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,15 @@ public JWTPayloadDTO() {
private String subject_application_vendor;

private String subject_application_version;

public static JWTPayloadDTO getMocked() {
JWTPayloadDTO out = new JWTPayloadDTO();
out.setLocality("MOCK-LOCALITY");
out.setSubject_role("MOCK-ROLE");
out.setSubject_application_id("MOCK-ID");
out.setSubject_application_vendor("MOCK-VENDOR");
out.setSubject_application_version("MOCK-VER");
out.setIss("MOCK-ISS#ABCDEF");
return out;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void mockLog(String workflowInstanceId, ProcessorOperationEnum operation
startDateOperation,
"Mocked Doc Type Ini",
"Mocked fiscal code Ini",
new JWTPayloadDTO()
JWTPayloadDTO.getMocked()
);
logger.info(
LOG_TYPE_KPI,
Expand All @@ -104,7 +104,7 @@ private void mockLog(String workflowInstanceId, ProcessorOperationEnum operation
startDateOperation,
"Mocked Doc Type Ini",
"Mocked fiscal code Ini",
new JWTPayloadDTO()
JWTPayloadDTO.getMocked()
);
}

Expand Down

0 comments on commit b05bfe6

Please sign in to comment.