Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In Weld 1 this was a default behaviour, with Weld 2 and onwards, this changed but is still configurable.
Since DS depends on Weld 1.x API, there is no option to configure this via org.jboss.weld.environment.se.Weld, but it can still be done via system property.
Flat deployment would eliminate some test problems as, for instance, custom MockManager. Namely CustomMockManager and the test linked to it which breaks all tests in that module for Weld.
The reason is that it uses beans.xml to enable alternatives, which in Weld only works for given bean archive (e.g. this leads to eternal Holy Bean Archive War between Weld and OWB interpretations ).
Swapping the test runner behaviour with Weld shouldn't cause any harm as this is unit test level and the "flatness" doesn't really matter there.