Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0048610Openbravo ERPA. Platformpublic2022-02-16 09:582023-09-07 12:02
caristu 
Triage Platform Base 
highminorhave not tried
closedfixed 
5
 
PR23Q4 
Core
No
0048610: Provide a mocking library for junit tests
It would be nice to have a mocking framework that we could use in the junit tests. This will help to replace application objects with some behavior difficult to test with simulated objects that mimic the real behavior.
.
No tags attached.
related to defect 0053411 closed Triage Platform Base Some test cases using mockito fails with JDK22 
blocks defect 0048994 closed caristu Include Push API tests using mockito 
causes defect 0052900 closed Triage Platform Base Byte Buddy library is duplicated in core 
Issue History
2022-02-16 09:58caristuNew Issue
2022-02-16 09:58caristuAssigned To => Triage Platform Base
2022-02-16 09:58caristuModules => Core
2022-02-16 09:58caristuTriggers an Emergency Pack => No
2022-02-16 09:59caristuStatusnew => acknowledged
2022-02-16 10:03hgbotNote Added: 0135046
2022-04-07 09:30caristuRelationship addedblocks 0048994
2022-04-08 13:26caristuRelationship addedblocks 0049014
2022-04-08 13:26caristuRelationship deletedblocks 0049014
2023-06-28 16:25hgbotNote Added: 0151765
2023-06-28 16:25hgbotNote Added: 0151766
2023-06-28 16:25hgbotResolutionopen => fixed
2023-06-28 16:25hgbotStatusacknowledged => closed
2023-06-28 16:25hgbotFixed in Version => PR23Q4
2023-06-28 16:25hgbotNote Added: 0151767
2023-06-28 16:25hgbotNote Added: 0151768
2023-06-30 14:49caristuRelationship addedcauses 0052900
2023-09-07 12:02caristuIssue cloned0053411
2023-09-07 12:02caristuRelationship addedrelated to 0053411

Notes
(0135046)
hgbot   
2022-02-16 10:03   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/527 [^]
(0151765)
hgbot   
2023-06-28 16:25   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: c2f740f6b08750523ccb6b23a04d036c9fe1d568
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 28-06-2023 14:18:48
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/c2f740f6b08750523ccb6b23a04d036c9fe1d568 [^]

Related to ISSUE-48610 - Mockito Version Upgrade 4.4.0 -> 5.3.1

---
A lib/test/byte-buddy-1.14.4.jar
A lib/test/byte-buddy-agent-1.14.4.jar
A lib/test/mockito-core-5.3.1.jar
A lib/test/objenesis-3.3.jar
M legal/Licensing.txt
M src-test/.classpath.template
R lib/test/mockito-core-4.4.0.jar
R lib/test/mockito-inline-4.4.0.jar
---
(0151766)
hgbot   
2023-06-28 16:25   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: e30e08ad73d11d587ceeec19dc405fa6d23c6658
Author: adrian.blasco <adrian.blasco@openbravo.com>
Date: 28-06-2023 16:21:28
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/e30e08ad73d11d587ceeec19dc405fa6d23c6658 [^]

Related to ISSUE-48610 Updated Mockito to 5.4.0

---
A lib/test/byte-buddy-1.14.5.jar
A lib/test/byte-buddy-agent-1.14.5.jar
A lib/test/mockito-core-5.4.0.jar
M legal/Licensing.txt
M src-test/.classpath.template
---
(0151767)
hgbot   
2023-06-28 16:25   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 3c11d4e35ab001e231ac18022feeb6e611ec8c98
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 28-06-2023 16:24:52
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/3c11d4e35ab001e231ac18022feeb6e611ec8c98 [^]

Fixes ISSUE-48610: Adds support to create mocks using Mockito

---
A lib/test/byte-buddy-1.14.5.jar
A lib/test/byte-buddy-agent-1.14.5.jar
A lib/test/mockito-core-5.4.0.jar
A lib/test/objenesis-3.3.jar
A src-test/src/org/openbravo/test/base/MockableBaseTest.java
M legal/Licensing.txt
M src-test/.classpath.template
M src-test/src/org/openbravo/test/base/OBBaseTest.java
---
(0151768)
hgbot   
2023-06-28 16:25   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/527 [^]