Skip to content

Commit

Permalink
P4PADEV-1658 fix rename class field
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicogi committed Jan 7, 2025
1 parent 8f5d085 commit 332925d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Map<TreasuryOperationEnum, List<TreasuryDTO>> apply(FlussoGiornaleDiCassa
.documentCode(String.valueOf(movContoEvidenza.getNumeroDocumento()))
.regionValueDate(regionValueDate)
.organizationId(organizationDTO.getOrgId())
.flowIdentifierCode(TreasuryUtils.getIdentificativo(movContoEvidenza.getCausale(), TreasuryUtils.IUF))
.iuf(TreasuryUtils.getIdentificativo(movContoEvidenza.getCausale(), TreasuryUtils.IUF))
.iuv(null)
.creationDate(new Date())
.lastUpdateDate(new Date())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public Map<TreasuryOperationEnum, List<TreasuryDTO>> apply(FlussoGiornaleDiCassa
.documentCode(String.valueOf(movContoEvidenza.getNumeroDocumento()))
.regionValueDate(regionValueDate)
.organizationId(organizationDTO.getOrgId())
.flowIdentifierCode(TreasuryUtils.getIdentificativo(movContoEvidenza.getCausale(), TreasuryUtils.IUF))
.iuf(TreasuryUtils.getIdentificativo(movContoEvidenza.getCausale(), TreasuryUtils.IUF))
.iuv(null)
.creationDate(new Date())
.lastUpdateDate(new Date())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public TreasuryIufResult parseData(Path treasuryOpiFilePath, IngestionFlowFileDT
List<TreasuryDTO> stringListMap = op2TreasuriesMap.get(TreasuryOperationEnum.INSERT);
stringListMap.forEach(treasuryDTO -> {
treasuryDao.insert(treasuryDTO);
iufList.add(treasuryDTO.getFlowIdentifierCode());
iufList.add(treasuryDTO.getIuf());
});

return new TreasuryIufResult(iufList.stream().toList(), true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void testParseData_whenValidFile_thenProcessesSuccessfully() {
versionHandlerServices.add(handler);

TreasuryDTO treasuryDTO = TreasuryDTO.builder()
.flowIdentifierCode("Flow123")
.iuf("Flow123")
.build();
Map<TreasuryOperationEnum, List<TreasuryDTO>> handlerResult = Map.of(
TreasuryOperationEnum.INSERT, List.of(treasuryDTO)
Expand Down Expand Up @@ -97,7 +97,7 @@ void testParseData_whenMultipleHandlers_thenUsesFirstValid() {
when(handler1.handle(file, ingestionFlowFileDTO, 1)).thenReturn(Collections.emptyMap());

TreasuryDTO treasuryDTO = TreasuryDTO.builder()
.flowIdentifierCode("Flow456")
.iuf("Flow456")
.build();
Map<TreasuryOperationEnum, List<TreasuryDTO>> handlerResult = Map.of(
TreasuryOperationEnum.INSERT, List.of(treasuryDTO)
Expand Down

0 comments on commit 332925d

Please sign in to comment.