[weld-dev] CDI TCK: extensions.processBean.ProcessBeanTest

Pete Muir pmuir at redhat.com
Thu Jun 17 21:10:09 EDT 2010


Hi Scott,

On 17 Jun 2010, at 17:18, Scott Ferguson wrote:

> Hopefully this is the right list for CDI TCK discussions.

Yes it is.

> 
> I'm puzzled by an assertion in extensions.processBean.ProcessBeanTest, 
> specifically
> 
> testProcessProducerMethodEvent()
> 
> 79:       assert ProcessBeanObserver.getCowShedProcessBeanCount() == 2;
> 
> testProcessProducerFieldEvent()
> 
> 
> 102:      assert ProcessBeanObserver.getChickenHutchProcessBeanCount() 
> == 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.

Agreed, this does seem weird. Could you file an issue at https://jira.jboss.org/browse/CDITCK so we can investigate further?


More information about the weld-dev mailing list