Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-600

WrappedInjectionTargetTest assumes unspecified lifecycle behaviour

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.0.Final, 2.0.4.Final
    • 2.0.3.Final
    • Tests
    • None

    Description

      org.jboss.cdi.tck.tests.extensions.lifecycle.processInjectionTarget.WrappedInjectionTargetTest
      uses an @ApplicationScoped bean to 'transfer' information.

      But according to the spec, the Context for @ApplicationScoped beans is only active after AfterDeploymentValidation on.

      But the Servlet Container might set up Servlet Filters, Listeners etc way before that. Thus sending an event to an @ApplicationScoped bean in ProcessInjectionTarget is very unlikely to ever reach the intended audience.

      Thus this test is doomed to fail.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            struberg Mark Struberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty