[webbeans-commits] Webbeans SVN: r1384 - tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Mon Feb 2 11:27:27 EST 2009


Author: dallen6
Date: 2009-02-02 11:27:27 -0500 (Mon, 02 Feb 2009)
New Revision: 1384

Modified:
   tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java
Log:
Changed stubs to always fail (commented out code that is not testing the correct scenario).

Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java	2009-02-02 14:02:20 UTC (rev 1383)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java	2009-02-02 16:27:27 UTC (rev 1384)
@@ -45,7 +45,9 @@
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testSimpleWebBeanWithSerializableImplementationClassOK()
    {
-      createSimpleBean(Jyvaskyla.class);
+      deployBeans(Jyvaskyla.class);
+      Set<Bean<Jyvaskyla>> beans = manager.resolveByType(Jyvaskyla.class);
+      assert !beans.isEmpty();
    }
    
    @Test @SpecAssertion(section="8.4", id = "unknown")
@@ -107,11 +109,12 @@
     * Bean with a passivating scope must be serialized and deserialized along
     * with their owner
     */
-   @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+   @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testDependentInterceptorsOfStatefulEnterpriseBeanMustBeSerializable()
    {
-      deployBeans(Kaarina_Broken.class);
+      //deployBeans(Kaarina_Broken.class);
+      assert false;
    }
 
    /**
@@ -120,11 +123,12 @@
     * Bean with a passivating scope must be serialized and deserialized along
     * with their owner
     */
-   @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+   @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testDependentDecoratorsOfStatefulEnterpriseBeanMustBeSerializable()
    {
-      deployBeans(Porvoo_Broken.class);
+      //deployBeans(Porvoo_Broken.class);
+      assert false;
    }
 
    /**
@@ -133,11 +137,12 @@
     * Bean with a passivating scope must be serialized and deserialized along
     * with their owner
     */
-   @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+   @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testDependentInterceptorsOfWebBeanWithPassivatingScopeMustBeSerializable()
    {
-      deployBeans(Kotka_Broken.class);
+      //deployBeans(Kotka_Broken.class);
+      assert false;
    }
 
    /**
@@ -146,11 +151,12 @@
     * Bean with a passivating scope must be serialized and deserialized along
     * with their owner
     */
-   @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+   @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testDependentDecoratorsOfWebBeansWithPassivatingScopeMustBeSerializable()
    {
-      deployBeans(Raisio_Broken.class);
+      //deployBeans(Raisio_Broken.class);
+      assert false;
    }
 
    /**
@@ -212,11 +218,13 @@
     * UnserializableDependencyException must be thrown by the Web Bean manager
     * at initialization time.
     */
-   @Test(groups = { "contexts", "passivation" })
+   @Test(groups = { "contexts", "passivation", "broken" })
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
    {
-      createSimpleBean(Joensuu.class);
+      deployBeans(Joensuu.class, Violation.class);
+      Set<Bean<Joensuu>> beans = manager.resolveByType(Joensuu.class);
+      assert !beans.isEmpty();
    }
 
    /**
@@ -314,8 +322,9 @@
    @SpecAssertion(section = "8.4", id = "unknown")
    public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
    {
-      createSimpleBean(CityProducer2.class);
-      createSimpleBean(Hyvinkaa.class);
+      deployBeans(CityProducer2.class, Hyvinkaa.class);
+      Set<Bean<Hyvinkaa>> beans = manager.resolveByType(Hyvinkaa.class);
+      assert !beans.isEmpty();
    }
 
    /**




More information about the weld-commits mailing list