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

ContainerCtrlTckTest - fix testShutdownWithInactiveContexts()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3-incubating
    • 1.0.0
    • CdiControl
    • None

    Description

      Line 175:
      cdiContainer.getContextControl().startContexts();
      should be:
      cdiContainer.getContextControl().stopContexts();

      Fixing this causes the testShutdownWithInactiveContexts() failure, due to https://issues.jboss.org/browse/WELD-1072

      In fact testRestartContexts() should also fail but it doesn't by coincidence, the reasons:

      • WeldContainerControl.shutdown() does not stop contexts
      • Weld core does not invalidate other contexts than @ApplicationScoped during shutdown
      • Weld core uses some request scoped caching optimization

      WELD-1072 is going to be fixed in 1.1.13.Final and 2.0.1.Final.

      The test should be fixed. I'm going to address the other problem (WeldContainerControl.shutdown()) in a different issue.

      Attachments

        1. deltaspike-370.patch
          2 kB
          Rafael Benevides

        Activity

          People

            rafabene Rafael Benevides
            mkouba Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: