Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056656Openbravo ERP09. Financial managementpublic2024-10-04 12:042024-11-07 16:43
gorka_gil 
SABARINATH P 
normalminorN/A
closedfixed 
5
 
PR25Q1 
Core
No
0056656: funds transfer: tests are broken
Because of this issue : https://issues.openbravo.com/view.php?id=56654, [^]

the tests of funds transfer are not executed in ci.

Apart of that they are broken from 7 years ago, since they are calling to createTransfer function of 8 params:
https://gitlab.com/openbravo/product/openbravo/-/blob/master/src-test/src/org/openbravo/advpaymentmngt/test/FundsTransferTest.java#L167 [^]

This function createTransfer of 8 params it is calling to itself, so it will fail for infinite loop:
https://gitlab.com/openbravo/product/openbravo/-/blob/8ae3396ac3f1a13a082069c6010659536649cc1d/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/FundsTransferActionHandler.java#L157 [^]

This function of 8 params should be deleted, and call directly to the function of 9 params.

Note: deleting that public function it is an api change, but since the function it is broke from 7 years, then we are sure that none it is using it.

After do this the tests are failing for other reasons that should be also fixed.
-
No tags attached.
related to defect 0056654 closed Triage Omni OMS org.openbravo.advpaymentmngt junit tests are not executed in ci 
Issue History
2024-10-04 12:04gorka_gilNew Issue
2024-10-04 12:04gorka_gilAssigned To => Triage Omni OMS
2024-10-04 12:04gorka_gilModules => Core
2024-10-04 12:04gorka_gilTriggers an Emergency Pack => No
2024-10-04 12:05gorka_gilRelationship addedrelated to 0056654
2024-10-07 09:36SABARINATH PAssigned ToTriage Omni OMS => SABARINATH P
2024-10-08 10:16SABARINATH PStatusnew => scheduled
2024-10-10 15:30hgbotNote Added: 0170265
2024-11-07 16:43hgbotResolutionopen => fixed
2024-11-07 16:43hgbotStatusscheduled => closed
2024-11-07 16:43hgbotNote Added: 0171654
2024-11-07 16:43hgbotFixed in Version => PR25Q1
2024-11-07 16:43hgbotNote Added: 0171655

Notes
(0170265)
hgbot   
2024-10-10 15:30   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1389 [^]
(0171654)
hgbot   
2024-11-07 16:43   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1389 [^]
(0171655)
hgbot   
2024-11-07 16:43   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 188da85ee2621ba2275ddb1fa49aa2fda8db1507
Author: Sabarinath <s.palanisamy@external.orisha.com>
Date: 07-11-2024 10:54:16
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/188da85ee2621ba2275ddb1fa49aa2fda8db1507 [^]

Fixed ISSUE-56656: Modifying FundsTransfer junit test.

---
M src-test/src/org/openbravo/advpaymentmngt/test/FundsTransferTest.java
---