Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0048994Openbravo ERPA. Platformpublic2022-04-07 09:222023-10-13 11:58
caristu 
caristu 
highminorhave not tried
closedfixed 
5
 
PR23Q4 
Core
No
0048994: Include Push API tests using mockito
As part of the Push API project some tests using mockito where developed. They can not be puhsed until the Mockito testing infrastructure is included in core.
.
No tags attached.
related to defect 0047111 closed alostale Openbravo ERP Upgrade jUnit to latest 4.x version 
related to defect 0050876 closed caristu Modules An event defined about a change in the organization does not create the EDL request to manage the event subscription 
related to defect 0051927 closed caristu Retail Modules Web POS Order Creation event is not fired for cross store returns 
related to defect 0053411 closed Triage Platform Base Openbravo ERP Some test cases using mockito fails with JDK22 
depends on feature request 0048610 closed Triage Platform Base Openbravo ERP Provide a mocking library for junit tests 
depends on feature request 0048579 closed caristu Openbravo ERP Push API 
depends on feature request 0049083 closed caristu Openbravo ERP Push API: support multi-record events 
Issue History
2022-04-07 09:22caristuNew Issue
2022-04-07 09:22caristuAssigned To => Triage Platform Base
2022-04-07 09:22caristuModules => Core
2022-04-07 09:22caristuTriggers an Emergency Pack => No
2022-04-07 09:23caristuAssigned ToTriage Platform Base => caristu
2022-04-07 09:24hgbotNote Added: 0136385
2022-04-07 09:30caristuRelationship addeddepends on 0048610
2022-04-07 09:52caristuStatusnew => acknowledged
2022-04-07 10:25hgbotNote Added: 0136394
2022-04-07 10:29caristuRelationship addeddepends on 0048579
2022-04-11 17:59hgbotNote Added: 0136472
2022-04-11 17:59hgbotNote Added: 0136473
2023-03-27 15:42caristuRelationship addeddepends on 0049083
2023-03-27 15:43caristuRelationship addeddepends on 0047111
2023-03-27 15:44caristuRelationship addeddepends on 0050876
2023-03-27 15:44caristuRelationship addeddepends on 0051926
2023-03-27 15:44caristuRelationship deleteddepends on 0051926
2023-03-27 15:44caristuRelationship deleteddepends on 0050876
2023-03-27 15:44caristuRelationship deleteddepends on 0047111
2023-03-27 15:44caristuRelationship addedrelated to 0047111
2023-03-27 15:45caristuRelationship addedrelated to 0050876
2023-03-27 15:45caristuRelationship addedrelated to 0051926
2023-03-27 15:45caristuRelationship deletedrelated to 0051926
2023-03-27 15:46caristuRelationship addedrelated to 0051927
2023-06-30 10:08hgbotResolutionopen => fixed
2023-06-30 10:08hgbotStatusacknowledged => closed
2023-06-30 10:08hgbotNote Added: 0151931
2023-06-30 10:08hgbotFixed in Version => PR23Q4
2023-06-30 10:08hgbotNote Added: 0151932
2023-06-30 10:37hgbotNote Added: 0151935
2023-06-30 10:37hgbotNote Added: 0151936
2023-06-30 10:37hgbotNote Added: 0151941
2023-06-30 10:37hgbotNote Added: 0151942
2023-06-30 10:37hgbotNote Added: 0151943
2023-07-03 14:07hgbotNote Added: 0152051
2023-07-03 14:13hgbotNote Added: 0152056
2023-10-13 11:58caristuRelationship addedrelated to 0053411

Notes
(0136385)
hgbot   
2022-04-07 09:24   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/556 [^]
(0136394)
hgbot   
2022-04-07 10:25   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.business/-/merge_requests/2 [^]
(0136472)
hgbot   
2022-04-11 17:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/24 [^]
(0136473)
hgbot   
2022-04-11 17:59   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.events.business/-/merge_requests/2 [^]
(0151931)
hgbot   
2023-06-30 10:08   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/556 [^]
(0151932)
hgbot   
2023-06-30 10:08   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 4eed1a6c29e5dfd6eafe9e8f949103691984c98f
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 30-06-2023 10:07:03
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/4eed1a6c29e5dfd6eafe9e8f949103691984c98f [^]

fixes BUG-48994: Include Push API tests using Mockito

---
A src-test/src/org/openbravo/synchronization/event/SynchronizationEventTest.java
M src-test/src/org/openbravo/test/StandaloneTestSuite.java
---
(0151935)
hgbot   
2023-06-30 10:37   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/24 [^]
(0151936)
hgbot   
2023-06-30 10:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 3095f5cb798a50953824261dbc118c1598ba902c
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 30-06-2023 08:32:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/3095f5cb798a50953824261dbc118c1598ba902c [^]

related to BUG-48994: Include tests using Mockito

---
A src-test/org/openbravo/api/edl/ApiEventItemProcessorTest.java
A src-test/org/openbravo/api/event/ApiEventEDLRequestCreatorTest.java
A src-test/org/openbravo/api/event/ApiEventRecordExporterTest.java
A src-test/org/openbravo/api/event/ApiEventTriggerTest.java
A src-test/org/openbravo/api/event/ApiSubscriptionResolverTest.java
A src-test/org/openbravo/api/subscription/ApiSubscriptionStoreTest.java
M src-test/org/openbravo/api/StandaloneTestSuite.java
---
(0151941)
hgbot   
2023-06-30 10:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: cddf209ae60ddd71c6abe5d24cd29837207b0eaa
Author: adrian.blasco <adrian.blasco@openbravo.com>
Date: 30-06-2023 08:32:24
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/cddf209ae60ddd71c6abe5d24cd29837207b0eaa [^]

Related to ISSUE-48994 Refactor Exception in test from API Event Trigger

---
M src-test/org/openbravo/api/event/ApiEventTriggerTest.java
---
(0151942)
hgbot   
2023-06-30 10:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 91ab972c26d423c0b1b304aaacb58fcfcf094d2d
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 30-06-2023 10:36:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/91ab972c26d423c0b1b304aaacb58fcfcf094d2d [^]

related to BUG-48994: update copyright years

---
M src-test/org/openbravo/api/StandaloneTestSuite.java
M src-test/org/openbravo/api/dal/ApiEventCreationTest.java
M src-test/org/openbravo/api/dal/ApiSubscriptionCreationTest.java
M src-test/org/openbravo/api/edl/ApiEventItemProcessorTest.java
M src-test/org/openbravo/api/event/ApiEventEDLRequestCreatorTest.java
M src-test/org/openbravo/api/event/ApiEventStoreTest.java
M src-test/org/openbravo/api/event/ApiEventTriggerTest.java
M src-test/org/openbravo/api/event/ApiSubscriptionResolverTest.java
M src-test/org/openbravo/api/event/subscription/ApiSubscriptionStoreTest.java
---
(0151943)
hgbot   
2023-06-30 10:37   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 7d2cf09a04014a5d118b54497809e5316d0abee8
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 30-06-2023 10:37:32
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/7d2cf09a04014a5d118b54497809e5316d0abee8 [^]

related to BUG-48994: Include tests using Mockito

---
A src-test/org/openbravo/api/edl/ApiEventItemProcessorTest.java
A src-test/org/openbravo/api/event/ApiEventEDLRequestCreatorTest.java
A src-test/org/openbravo/api/event/ApiEventRecordExporterTest.java
A src-test/org/openbravo/api/event/ApiEventTriggerTest.java
A src-test/org/openbravo/api/event/ApiSubscriptionResolverTest.java
A src-test/org/openbravo/api/subscription/ApiSubscriptionStoreTest.java
M src-test/org/openbravo/api/StandaloneTestSuite.java
M src-test/org/openbravo/api/dal/ApiEventCreationTest.java
M src-test/org/openbravo/api/dal/ApiSubscriptionCreationTest.java
M src-test/org/openbravo/api/event/ApiEventStoreTest.java
M src-test/org/openbravo/api/event/subscription/ApiSubscriptionStoreTest.java
---
(0152051)
hgbot   
2023-07-03 14:07   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 48cf66a179941148e3ef8eb629eb087885e06938
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 03-07-2023 14:06:09
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/48cf66a179941148e3ef8eb629eb087885e06938 [^]

related to BUG-48994: disable test failing in JDK 22

  Disable tests temporarily because it fails when executing it with JDK
22 with the following error:

  org.mockito.exceptions.base.MockitoException: Mockito cannot mock this
class: interface javax.enterprise.inject.Instance

---
M src-test/src/org/openbravo/synchronization/event/SynchronizationEventTest.java
---
(0152056)
hgbot   
2023-07-03 14:13   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: d8ce7d666a3ade0a6c51910c85d383c67e28ae31
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 03-07-2023 14:12:47
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/d8ce7d666a3ade0a6c51910c85d383c67e28ae31 [^]

related to BUG-48994: add ignoring reason

---
M src-test/src/org/openbravo/synchronization/event/SynchronizationEventTest.java
---