Uploaded image for project: 'Zanata'
  1. ZNTA-797

Replace SeamAutowire with real CDI in tests

    Details

    • Epic Link:
    • Sprint:
      16.05, 16.06
    • Story Points:
      5

      Description

      Replacing Autowire with real CDI will enable less fragile, more accurate tests (eg multiple scopes), and the use of CDI interceptors. SeamAutowire for CDI is still based on Seam conventions like bean names, which means changing or removing a bean name might break a test.

      Note that it is currently not possible to use CdiUnitRunner (for CDI-Unit injections) at the same time as DataProviderRunner (for parameterised test methods). It may be possible to implement delegation in one of the runners. This would be ideal.

      If not, we could try starting CDI scopes (eg with DeltaSpike Container Control) and inject beans into the test ourselves.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                camunoz Carlos Munoz
                Reporter:
                sflanigan Sean Flanigan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: