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

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Fri Jul 31 00:17:18 EDT 2009


Author: shane.bryzak at jboss.com
Date: 2009-07-31 00:17:17 -0400 (Fri, 31 Jul 2009)
New Revision: 3378

Added:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/Television.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/TelevisionProducer.java
Modified:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java
Log:
tests for 6.6.4.ea, eb


Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java	2009-07-31 01:46:55 UTC (rev 3377)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java	2009-07-31 04:17:17 UTC (rev 3378)
@@ -110,11 +110,18 @@
    }
    
    @Test(expectedExceptions = IllegalProductException.class)
-   @SpecAssertion(section = "6.6.4", id = "d")
+   @SpecAssertion(section = "6.6.4", id = "ea")
+   public void testPassivatingScopeProducerMethodReturnsUnserializableObjectNotOk()
+   {
+      getInstanceByType(Television.class).turnOn();
+   }
+      
+   @Test(expectedExceptions = IllegalProductException.class)
+   @SpecAssertion(section = "6.6.4", id = "eb")
    public void testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException()
    {
       getInstanceByType(HelsinkiNonSerializable.class).ping();
-   }
+   }   
    
    public static boolean isSerializable(Class<?> clazz)
    {

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/Television.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/Television.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/Television.java	2009-07-31 04:17:17 UTC (rev 3378)
@@ -0,0 +1,7 @@
+package org.jboss.jsr299.tck.tests.context.passivating;
+
+ at NonBean
+class Television
+{
+   public void turnOn() {}
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/TelevisionProducer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/TelevisionProducer.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/TelevisionProducer.java	2009-07-31 04:17:17 UTC (rev 3378)
@@ -0,0 +1,12 @@
+package org.jboss.jsr299.tck.tests.context.passivating;
+
+import javax.enterprise.context.SessionScoped;
+import javax.enterprise.inject.Produces;
+
+class TelevisionProducer
+{
+   @Produces @SessionScoped Television getTelevision()
+   {
+      return new Television();
+   }
+}




More information about the weld-commits mailing list