[webbeans-commits] Webbeans SVN: r3375 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating: broken20 and 1 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Jul 30 21:13:08 EDT 2009


Author: shane.bryzak at jboss.com
Date: 2009-07-30 21:13:08 -0400 (Thu, 30 Jul 2009)
New Revision: 3375

Added:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/District.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/EspooLocal_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/Espoo_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/UnserializablePassivatingEnterpriseBeanConstructorTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/District.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/EspooLocal_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/Espoo_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/UnserializablePassivatingEnterpriseBeanInitializerTest.java
Log:
tests for 6.6.4.bb and bc


Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/District.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/District.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/District.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,14 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+
+import javax.enterprise.context.Dependent;
+
+ at Dependent
+class District
+{
+   
+   public void ping()
+   {
+      
+   }
+
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/EspooLocal_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/EspooLocal_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/EspooLocal_Broken.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+
+import javax.ejb.Local;
+
+ at Local
+public interface EspooLocal_Broken
+{
+   
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/Espoo_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/Espoo_Broken.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,18 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.enterprise.inject.Current;
+
+ at Stateful
+ at SessionScoped
+class Espoo_Broken implements EspooLocal_Broken
+{
+   @Current
+   District district;
+   
+   @Remove
+   public void bye() {
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/UnserializablePassivatingEnterpriseBeanConstructorTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/UnserializablePassivatingEnterpriseBeanConstructorTest.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/UnserializablePassivatingEnterpriseBeanConstructorTest.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken20;
+
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DeploymentError;
+import org.jboss.test.audit.annotations.SpecAssertion;
+import org.jboss.test.audit.annotations.SpecVersion;
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
+import org.jboss.testharness.impl.packaging.Packaging;
+import org.jboss.testharness.impl.packaging.PackagingType;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at Packaging(PackagingType.EAR)
+ at ExpectedDeploymentException(DeploymentError.class)
+ at SpecVersion("20090625")
+public class UnserializablePassivatingEnterpriseBeanConstructorTest extends AbstractJSR299Test
+{   
+   @Test(groups = { "contexts", "passivation"})
+   @SpecAssertion(section = "6.6.4", id = "bb")
+   public void testDependentBeanWithNonSerializableImplementationInStatefulSessionBeanConstructorFails()
+   {
+      assert false;
+   }
+   
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/District.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/District.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/District.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,14 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+
+import javax.enterprise.context.Dependent;
+
+ at Dependent
+class District
+{
+   
+   public void ping()
+   {
+      
+   }
+
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/EspooLocal_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/EspooLocal_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/EspooLocal_Broken.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+
+import javax.ejb.Local;
+
+ at Local
+public interface EspooLocal_Broken
+{
+   
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/Espoo_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/Espoo_Broken.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,18 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.enterprise.inject.Current;
+
+ at Stateful
+ at SessionScoped
+class Espoo_Broken implements EspooLocal_Broken
+{
+   @Current
+   District district;
+   
+   @Remove
+   public void bye() {
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/UnserializablePassivatingEnterpriseBeanInitializerTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/UnserializablePassivatingEnterpriseBeanInitializerTest.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/UnserializablePassivatingEnterpriseBeanInitializerTest.java	2009-07-31 01:13:08 UTC (rev 3375)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken21;
+
+import org.jboss.jsr299.tck.AbstractJSR299Test;
+import org.jboss.jsr299.tck.DeploymentError;
+import org.jboss.test.audit.annotations.SpecAssertion;
+import org.jboss.test.audit.annotations.SpecVersion;
+import org.jboss.testharness.impl.packaging.Artifact;
+import org.jboss.testharness.impl.packaging.ExpectedDeploymentException;
+import org.jboss.testharness.impl.packaging.Packaging;
+import org.jboss.testharness.impl.packaging.PackagingType;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at Packaging(PackagingType.EAR)
+ at ExpectedDeploymentException(DeploymentError.class)
+ at SpecVersion("20090625")
+public class UnserializablePassivatingEnterpriseBeanInitializerTest extends AbstractJSR299Test
+{   
+   @Test(groups = { "contexts", "passivation"})
+   @SpecAssertion(section = "6.6.4", id = "bc")
+   public void testDependentBeanWithNonSerializableImplementationInStatefulSessionBeanInitializerFails()
+   {
+      assert false;
+   }
+   
+}




More information about the weld-commits mailing list