Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1304

Make CdiTestRunner use "flat" deployment on Weld by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.1
    • 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.

      Attachments

        Activity

          People

            manovotn Matej Novotny
            manovotn Matej Novotny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: