Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036326Openbravo ERP00. Application dictionarypublic2017-06-23 13:042022-02-01 08:07
aferraz 
Triage Platform Base 
normalmajorhave not tried
acknowledgedopen 
30Professional Appliance
 
 
Core
No
0036326: WeldUtils not supported from @BeforeClass method in JUnit
WeldUtils not supported from @BeforeClass method in JUnit

It is possible to use WeldUtils from a @Before method but not from a @BeforeClass method.
This is because weld is initialized on the @Before method of the WeldBaseTest class.
Run following line from a @BeforeClass method in a JUnit test:
CostAdjustmentProcess cap = WeldUtils.getInstanceFromStaticBeanManager(CostAdjustmentProcess.class);
Check a NPE is raised.
No tags attached.
related to defect 0036206 closed collazoandy4 Cannot calculate costs if the costing rule is validated with FIFO Costing Algorithm and Backdated Transactions Fixed 
Issue History
2017-06-23 13:04aferrazNew Issue
2017-06-23 13:04aferrazAssigned To => platform
2017-06-23 13:09aferrazDescription Updatedbug_revision_view_page.php?rev_id=15410#r15410
2017-06-23 13:37aferrazRelationship addedrelated to 0036206
2020-04-13 10:05alostaleProjectQA => Openbravo ERP
2020-04-13 10:06alostaleModules => Core
2020-04-13 10:06alostaleTriggers an Emergency Pack => No
2020-04-13 10:06alostaleStatusnew => acknowledged
2020-04-13 10:06alostaleCategoryAutomation - General => 00. Application dictionary
2020-04-13 10:06alostaleTypedefect => design defect
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.