Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0053411
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2023-09-07 12:022023-09-19 11:01
ReportercaristuView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionfixedFixed in VersionPR23Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0053411: Some test cases using mockito fails with JDK22

DescriptionSome test cases using mockito fails with JDK22
Steps To Reproduce1) 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]
TagsNo tags attached.
Attached Filestxt file icon stackTrace.txt [^] (12,915 bytes) 2023-09-07 13:10 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0048610 closedTriage Platform Base Provide a mocking library for junit tests 
related to defect 0053488 newTriage Platform Base Remove "net.bytebuddy.experimental" flag usage 
related to defect 0048994 closedcaristu Include Push API tests using mockito 

-  Notes
(0154583)
hgbot (developer)
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 (developer)
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 (developer)
2023-09-12 15:40

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/995 [^]
(0154866)
hgbot (developer)
2023-09-14 18:09

Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/995 [^]
(0154867)
hgbot (developer)
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 (developer)
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
---

- Issue History
Date Modified Username Field Change
2023-09-07 12:02 caristu New Issue
2023-09-07 12:02 caristu Assigned To => Triage Platform Base
2023-09-07 12:02 caristu Modules => Core
2023-09-07 12:02 caristu Triggers an Emergency Pack => No
2023-09-07 12:02 caristu Issue generated from 0048610
2023-09-07 12:02 caristu Relationship added related to 0048610
2023-09-07 12:04 caristu Steps to Reproduce Updated View Revisions
2023-09-07 12:08 hgbot Note Added: 0154583
2023-09-07 12:09 caristu Note Added: 0154584
2023-09-07 12:28 shuehner Issue Monitored: shuehner
2023-09-07 13:10 caristu File Added: stackTrace.txt
2023-09-12 15:40 hgbot Note Added: 0154742
2023-09-14 18:09 hgbot Note Added: 0154866
2023-09-14 18:09 hgbot Resolution open => fixed
2023-09-14 18:09 hgbot Status new => closed
2023-09-14 18:09 hgbot Fixed in Version => PR23Q4
2023-09-14 18:09 hgbot Note Added: 0154867
2023-09-14 18:16 hgbot Note Added: 0154868
2023-09-19 11:01 caristu Issue cloned 0053488
2023-09-19 11:01 caristu Relationship added related to 0053488
2023-10-13 11:58 caristu Relationship added related to 0048994


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker