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

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Jul 30 21:46:56 EDT 2009


Author: shane.bryzak at jboss.com
Date: 2009-07-30 21:46:55 -0400 (Thu, 30 Jul 2009)
New Revision: 3377

Added:
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/BrokenInterceptor.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/District.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/EnterpriseBeanWithNonPassivatingInjectedFieldInInterceptorTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/EspooLocal_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/Espoo_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/BrokenInterceptor.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/District.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/EnterpriseBeanWithNonPassivatingBeanConstructorParameterInInterceptorTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/EspooLocal_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/Espoo_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/BrokenInterceptor.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/District.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/EnterpriseBeanWithNonPassivatingInitializerParameterInInterceptorTest.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/EspooLocal_Broken.java
   tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/Espoo_Broken.java
Log:
tests for 6.6.4.bda, bdb, bdc


Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/BrokenInterceptor.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/BrokenInterceptor.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/BrokenInterceptor.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken22;
+
+import javax.enterprise.inject.Current;
+import javax.interceptor.Interceptor;
+import javax.interceptor.InvocationContext;
+
+ at Interceptor
+class BrokenInterceptor
+{
+   @Current District district;
+   
+   public Object intercept(InvocationContext ctx) throws Exception
+   {
+      return ctx.proceed();
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/District.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/District.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/District.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken22;
+
+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/broken22/EnterpriseBeanWithNonPassivatingInjectedFieldInInterceptorTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/EnterpriseBeanWithNonPassivatingInjectedFieldInInterceptorTest.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/EnterpriseBeanWithNonPassivatingInjectedFieldInInterceptorTest.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken22;
+
+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 EnterpriseBeanWithNonPassivatingInjectedFieldInInterceptorTest extends AbstractJSR299Test
+{   
+   @Test(groups = { "contexts", "passivation", "ri-broken"})
+   @SpecAssertion(section = "6.6.4", id = "bda")
+   public void testSessionBeanWithNonPassivatingInjectedFieldInInterceptorFails()
+   {
+      assert false;
+   }
+   
+}

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

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/Espoo_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken22/Espoo_Broken.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken22;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.interceptor.Interceptors;
+
+ at Stateful
+ at SessionScoped
+ at Interceptors(BrokenInterceptor.class)
+class Espoo_Broken implements EspooLocal_Broken
+{  
+   @Remove
+   public void bye() {
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/BrokenInterceptor.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/BrokenInterceptor.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/BrokenInterceptor.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken23;
+
+import javax.enterprise.inject.Current;
+import javax.interceptor.Interceptor;
+import javax.interceptor.InvocationContext;
+
+ at Interceptor
+class BrokenInterceptor
+{
+   public BrokenInterceptor(@Current District district) {}
+   
+   public Object intercept(InvocationContext ctx) throws Exception
+   {
+      return ctx.proceed();
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/District.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/District.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/District.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken23;
+
+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/broken23/EnterpriseBeanWithNonPassivatingBeanConstructorParameterInInterceptorTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/EnterpriseBeanWithNonPassivatingBeanConstructorParameterInInterceptorTest.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/EnterpriseBeanWithNonPassivatingBeanConstructorParameterInInterceptorTest.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken23;
+
+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 EnterpriseBeanWithNonPassivatingBeanConstructorParameterInInterceptorTest extends AbstractJSR299Test
+{   
+   @Test(groups = { "contexts", "passivation", "ri-broken" })
+   @SpecAssertion(section = "6.6.4", id = "bdb")
+   public void testSessionBeanWithNonPassivatingBeanConstructorParamInInterceptorFails()
+   {
+      assert false;
+   }
+   
+}

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

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/Espoo_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken23/Espoo_Broken.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken23;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.interceptor.Interceptors;
+
+ at Stateful
+ at SessionScoped
+ at Interceptors(BrokenInterceptor.class)
+class Espoo_Broken implements EspooLocal_Broken
+{  
+   @Remove
+   public void bye() {
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/BrokenInterceptor.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/BrokenInterceptor.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/BrokenInterceptor.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,18 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken24;
+
+import javax.enterprise.inject.Current;
+import javax.enterprise.inject.Initializer;
+import javax.interceptor.Interceptor;
+import javax.interceptor.InvocationContext;
+
+ at Interceptor
+class BrokenInterceptor
+{
+   @Initializer
+   public void init(@Current District district) {}
+   
+   public Object intercept(InvocationContext ctx) throws Exception
+   {
+      return ctx.proceed();
+   }
+}

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/District.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/District.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/District.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken24;
+
+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/broken24/EnterpriseBeanWithNonPassivatingInitializerParameterInInterceptorTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/EnterpriseBeanWithNonPassivatingInitializerParameterInInterceptorTest.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/EnterpriseBeanWithNonPassivatingInitializerParameterInInterceptorTest.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken24;
+
+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 EnterpriseBeanWithNonPassivatingInitializerParameterInInterceptorTest extends AbstractJSR299Test
+{   
+   @Test(groups = { "contexts", "passivation", "ri-broken" })
+   @SpecAssertion(section = "6.6.4", id = "bdc")
+   public void testSessionBeanWithNonPassivatingInitializerParamInInterceptorFails()
+   {
+      assert false;
+   }
+   
+}

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

Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/Espoo_Broken.java	                        (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken24/Espoo_Broken.java	2009-07-31 01:46:55 UTC (rev 3377)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken24;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.interceptor.Interceptors;
+
+ at Stateful
+ at SessionScoped
+ at Interceptors(BrokenInterceptor.class)
+class Espoo_Broken implements EspooLocal_Broken
+{  
+   @Remove
+   public void bye() {
+   }
+}




More information about the weld-commits mailing list