[weld-commits] Weld SVN: r6946 - cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Mon Aug 9 16:17:43 EDT 2010


Author: pete.muir at jboss.org
Date: 2010-08-09 16:17:43 -0400 (Mon, 09 Aug 2010)
New Revision: 6946

Modified:
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanObserver.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanTest.java
   cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessSessionBeanTest.java
Log:
CDITCK-168

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanObserver.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanObserver.java	2010-08-09 20:07:23 UTC (rev 6945)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanObserver.java	2010-08-09 20:17:43 UTC (rev 6946)
@@ -60,7 +60,6 @@
    public void observeElephantSessionBean(@Observes ProcessSessionBean<Elephant> event)
    {
       ProcessBeanObserver.elephantProcessSessionBean = event;
-      ProcessBeanObserver.elephantProcessBeanCount++;
    }
    
    public void observeElephantBean(@Observes ProcessBean<Elephant> event)
@@ -73,7 +72,7 @@
       ProcessBeanObserver.cowProcessProducerMethod = event;
    }
    
-   public void observeCowProccesBean(@Observes ProcessBean<Cowshed> event)
+   public void observeCowShedProccesBean(@Observes ProcessBean<Cowshed> event)
    {
       ProcessBeanObserver.cowShedProcessBeanCount++;
    }
@@ -83,7 +82,7 @@
       ProcessBeanObserver.chickenProcessProducerField = event;
    }
    
-   public void observeChickenProccesBean(@Observes ProcessBean<ChickenHutch> event)
+   public void observeChickenHutchProccesBean(@Observes ProcessBean<ChickenHutch> event)
    {
       ProcessBeanObserver.chickenHutchProcessBeanCount++;
    }

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanTest.java	2010-08-09 20:07:23 UTC (rev 6945)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessBeanTest.java	2010-08-09 20:17:43 UTC (rev 6946)
@@ -76,7 +76,7 @@
       assert ProcessBeanObserver.getCowProcessProducerMethod().getBean().getBeanClass().equals(Cowshed.class);
       assert ProcessBeanObserver.getCowProcessProducerMethod().getAnnotatedProducerMethod().getBaseType().equals(Cow.class);
       assert ProcessBeanObserver.getCowProcessProducerMethod().getAnnotatedProducerMethod().getDeclaringType().getBaseType().equals(Cowshed.class);
-      assert ProcessBeanObserver.getCowShedProcessBeanCount() == 2;
+      assert ProcessBeanObserver.getCowShedProcessBeanCount() == 1;
       assert ProcessBeanObserver.getCowProcessProducerMethod().getAnnotated() instanceof AnnotatedMethod<?>;
       assert ProcessBeanObserver.getCowProcessProducerMethod().getAnnotatedProducerMethod().getJavaMember().getName().equals("getDaisy");
       assert ProcessBeanObserver.getCowProcessProducerMethod().getAnnotatedProducerMethod().getJavaMember().getDeclaringClass().equals(Cowshed.class);
@@ -99,7 +99,7 @@
       assert ProcessBeanObserver.getChickenProcessProducerField().getBean().getBeanClass().equals(ChickenHutch.class);
       assert ProcessBeanObserver.getChickenProcessProducerField().getAnnotatedProducerField().getBaseType().equals(Chicken.class);
       assert ProcessBeanObserver.getChickenProcessProducerField().getAnnotatedProducerField().getDeclaringType().getBaseType().equals(ChickenHutch.class);
-      assert ProcessBeanObserver.getChickenHutchProcessBeanCount() == 2;
+      assert ProcessBeanObserver.getChickenHutchProcessBeanCount() == 1;
       assert ProcessBeanObserver.getChickenProcessProducerField().getAnnotated() instanceof AnnotatedField<?>;
       assert ProcessBeanObserver.getChickenProcessProducerField().getAnnotatedProducerField().getJavaMember().getName().equals("chicken");
       assert ProcessBeanObserver.getChickenProcessProducerField().getAnnotatedProducerField().getJavaMember().getDeclaringClass().equals(ChickenHutch.class);

Modified: cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessSessionBeanTest.java
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessSessionBeanTest.java	2010-08-09 20:07:23 UTC (rev 6945)
+++ cdi-tck/branches/1.0/impl/src/main/java/org/jboss/jsr299/tck/tests/extensions/processBean/ProcessSessionBeanTest.java	2010-08-09 20:17:43 UTC (rev 6946)
@@ -60,7 +60,7 @@
    public void testProcessSessionBeanEvent()
    {
       assert ProcessBeanObserver.getElephantProcessSessionBean().getBean().getBeanClass().equals(Elephant.class);
-      assert ProcessBeanObserver.getElephantProcessBeanCount() == 2;
+      assert ProcessBeanObserver.getElephantProcessBeanCount() == 0;
       assert ProcessBeanObserver.getElephantProcessSessionBean().getEjbName().equals("Rosie");
       assert ProcessBeanObserver.getElephantProcessSessionBean().getSessionBeanType().equals(SessionBeanType.STATELESS);
       assert ProcessBeanObserver.getElephantProcessSessionBean().getAnnotated() instanceof AnnotatedType<?>;



More information about the weld-commits mailing list