Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0053411Openbravo ERPA. Platformpublic2023-09-07 12:022023-09-19 11:01
caristu 
Triage Platform Base 
highminorhave not tried
closedfixed 
5
 
PR23Q4 
Core
No
0053411: Some test cases using mockito fails with JDK22
Some test cases using mockito fails with JDK22
1) Using JDK22 run the HttpExternalSystemCommunication test. Note that it fails with the following error (full stack trace attached):

Underlying exception : org.mockito.exceptions.base.MockitoException: Could not modify all classes [class java.lang.Object, class org.openbravo.service.externalsystem.ExternalSystem, class org.openbravo.service.externalsystem.http.HttpExternalSystem]
No tags attached.
related to feature request 0048610 closed Triage Platform Base Provide a mocking library for junit tests 
related to defect 0053488 new Triage Platform Base Remove "net.bytebuddy.experimental" flag usage 
related to defect 0048994 closed caristu Include Push API tests using mockito 
txt stackTrace.txt (12,915) 2023-09-07 13:10
https://issues.openbravo.com/file_download.php?file_id=18937&type=bug
Issue History
2023-09-07 12:02caristuNew Issue
2023-09-07 12:02caristuAssigned To => Triage Platform Base
2023-09-07 12:02caristuModules => Core
2023-09-07 12:02caristuTriggers an Emergency Pack => No
2023-09-07 12:02caristuIssue generated from0048610
2023-09-07 12:02caristuRelationship addedrelated to 0048610
2023-09-07 12:04caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26787#r26787
2023-09-07 12:08hgbotNote Added: 0154583
2023-09-07 12:09caristuNote Added: 0154584
2023-09-07 12:28shuehnerIssue Monitored: shuehner
2023-09-07 13:10caristuFile Added: stackTrace.txt
2023-09-12 15:40hgbotNote Added: 0154742
2023-09-14 18:09hgbotNote Added: 0154866
2023-09-14 18:09hgbotResolutionopen => fixed
2023-09-14 18:09hgbotStatusnew => closed
2023-09-14 18:09hgbotFixed in Version => PR23Q4
2023-09-14 18:09hgbotNote Added: 0154867
2023-09-14 18:16hgbotNote Added: 0154868
2023-09-19 11:01caristuIssue cloned0053488
2023-09-19 11:01caristuRelationship addedrelated to 0053488
2023-10-13 11:58caristuRelationship addedrelated to 0048994

Notes
(0154583)
hgbot   
2023-09-07 12:08   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 6b8ab7197ea2ae870257b6e9d0a559c04d06cb63
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 07-09-2023 12:07:56
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/6b8ab7197ea2ae870257b6e9d0a559c04d06cb63 [^]

related to BUG-53411: disable test temporarily

---
M src-test/src/org/openbravo/service/externalsystem/http/HttpExternalSystemCommunicationTest.java
---
(0154584)
caristu   
2023-09-07 12:09   
Other tests disables for this same reason:

- https://gitlab.com/openbravo/product/openbravo/-/commit/d8ce7d666a3ade0a6c51910c85d383c67e28ae31 [^]
- https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/b933a6d9e2a628028aa9c870cfdaac7dd4386888 [^]
(0154742)
hgbot   
2023-09-12 15:40   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/995 [^]
(0154866)
hgbot   
2023-09-14 18:09   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/995 [^]
(0154867)
hgbot   
2023-09-14 18:09   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 99f934a7b92fbb237ca00776b22369e5c3e00620
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 14-09-2023 16:09:44
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/99f934a7b92fbb237ca00776b22369e5c3e00620 [^]

Fixes BUG-53411: avoid failures in some mockito tests with JDK 22

Make some test cases using mockito pass with JDK22 when they are
executed from the command line by enabling the
net.bytebuddy.experimental flag temporarily until this issue is fixed in
the mockito library itself.

It also reactivates the previously ignored tests.

---
M src-test/build.xml
M src-test/src/org/openbravo/service/externalsystem/http/HttpExternalSystemCommunicationTest.java
M src-test/src/org/openbravo/synchronization/event/SynchronizationEventTest.java
---
(0154868)
hgbot   
2023-09-14 18:16   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: d6bb064cd507d3aff93f00e94bdcc131d3ca55d5
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 14-09-2023 18:16:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/d6bb064cd507d3aff93f00e94bdcc131d3ca55d5 [^]

related to BUG-53411: stop ignoring tests

---
M src-test/org/openbravo/mobile/core/report/ReprintableDocumentServiceTest.java
---