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

extensions.processBean.ProcessBean event count issue

    Details

      Description

      The issue is in an assertion in extensions.processBean.ProcessBeanTest, counting the number of times the Cowshed bean raises a discovery event. There are three tests affected by this issue:

      extensions.processBean.ProcessBeanTest
      testProcessProducerFieldEvent()
      testProcessProducerMethodEvent()
      extensions.processBean.ProcessSessionBeanTest
      testProcessSessionBeanEvent()

      specifically

      testProcessProducerMethodEvent()

      79: assert ProcessBeanObserver.getCowShedProcessBeanCount() == 2;

      testProcessProducerFieldEvent()

      102: assert ProcessBeanObserver.getChickenHutchProcessBeanCount() == 2;

      testProcessSessionBeanEvent()

      63: assert ProcessBeanObserver.getElephantProcessBeanCount() == 2;

      But I can't see how this number is 2 instead of 1. The Cowshed looks like:

      public class Cowshed {
      @Produces public Cow getDaisy()

      { ... }

      }

      So there should be 3 relevant extension events fired:

      ProcessBean<Cowshed>
      ProcessProducerMethod<Cowshed, Cow>
      ProcessBean<Cow>

      I double checked the ProcessProducerMethod interface:

      ProcessProducerMethod<T,X> extends ProcessBean<X>

      which is where the ProcessBean<Cow> comes from, but I don't see where
      the 2nd ProcessBean<Cowshed> comes from.

      The ProcessSessionBean issue is essentially the same

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                ferg Scott Ferguson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: