Author: shane.bryzak(a)jboss.com
Date: 2009-08-04 23:51:22 -0400 (Tue, 04 Aug 2009)
New Revision: 3402
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/BrokenDecorator.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/District.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EspooLocal_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/Espoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/BrokenDecorator.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/District.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EnterpriseBeanWithNonPassivatingConstructorFieldInDecoratorTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EspooLocal_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/Espoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/BrokenDecorator.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/District.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EnterpriseBeanWithNonPassivatingInitializerFieldInDecoratorTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EspooLocal_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/Espoo_Broken.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken27/EnterpriseBeanWithNonPassivatingDecoratorTest.java
Log:
tests for 6.6.4.bdd, bde, bdf
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken27/EnterpriseBeanWithNonPassivatingDecoratorTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken27/EnterpriseBeanWithNonPassivatingDecoratorTest.java 2009-08-05
01:03:49 UTC (rev 3401)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken27/EnterpriseBeanWithNonPassivatingDecoratorTest.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -1,7 +1,5 @@
package org.jboss.jsr299.tck.tests.context.passivating.broken27;
-import javax.enterprise.inject.IllegalProductException;
-
import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.test.audit.annotations.SpecAssertion;
import org.jboss.test.audit.annotations.SpecVersion;
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/BrokenDecorator.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/BrokenDecorator.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/BrokenDecorator.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken28;
+
+import javax.decorator.Decorates;
+import javax.decorator.Decorator;
+import javax.enterprise.inject.Current;
+
+@Decorator
+class BrokenDecorator implements EspooLocal_Broken
+{
+ @Decorates EspooLocal_Broken espooLocal;
+
+ @Current District district;
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/District.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/District.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/District.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken28;
+
+import javax.enterprise.context.Dependent;
+
+@Dependent
+class District
+{
+ public void ping()
+ {
+
+ }
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken28;
+
+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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@SpecVersion("20090625")
+public class EnterpriseBeanWithNonPassivatingInjectedFieldInDecoratorTest extends
AbstractJSR299Test
+{
+ @Test(groups = { "contexts", "passivation", "ri-broken"
})
+ @SpecAssertion(section = "6.6.4", id = "bdd")
+ public void testSessionBeanWithNonPassivatingInjectedFieldInDecoratorFails()
+ {
+ assert false;
+ }
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EspooLocal_Broken.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EspooLocal_Broken.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/EspooLocal_Broken.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken28;
+
+import javax.ejb.Local;
+
+@Local
+public interface EspooLocal_Broken
+{
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/Espoo_Broken.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/Espoo_Broken.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken28/Espoo_Broken.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken28;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.interceptor.Interceptors;
+
+@Stateful
+@SessionScoped
+(a)Interceptors(BrokenDecorator.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/broken29/BrokenDecorator.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/BrokenDecorator.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/BrokenDecorator.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,15 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken29;
+
+import javax.decorator.Decorates;
+import javax.decorator.Decorator;
+import javax.enterprise.inject.Current;
+import javax.enterprise.inject.Initializer;
+
+@Decorator
+class BrokenDecorator implements EspooLocal_Broken
+{
+ @Decorates EspooLocal_Broken espooLocal;
+
+ @Initializer
+ public BrokenDecorator(@Current District district) {}
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/District.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/District.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/District.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken29;
+
+import javax.enterprise.context.Dependent;
+
+@Dependent
+class District
+{
+ public void ping()
+ {
+
+ }
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EnterpriseBeanWithNonPassivatingConstructorFieldInDecoratorTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EnterpriseBeanWithNonPassivatingConstructorFieldInDecoratorTest.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EnterpriseBeanWithNonPassivatingConstructorFieldInDecoratorTest.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken29;
+
+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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@SpecVersion("20090625")
+public class EnterpriseBeanWithNonPassivatingConstructorFieldInDecoratorTest extends
AbstractJSR299Test
+{
+ @Test(groups = { "contexts", "passivation", "ri-broken"
})
+ @SpecAssertion(section = "6.6.4", id = "bde")
+ public void testSessionBeanWithNonPassivatingConstructorFieldInDecoratorFails()
+ {
+ assert false;
+ }
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EspooLocal_Broken.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EspooLocal_Broken.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/EspooLocal_Broken.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken29;
+
+import javax.ejb.Local;
+
+@Local
+public interface EspooLocal_Broken
+{
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/Espoo_Broken.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/Espoo_Broken.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken29/Espoo_Broken.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken29;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.interceptor.Interceptors;
+
+@Stateful
+@SessionScoped
+(a)Interceptors(BrokenDecorator.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/broken30/BrokenDecorator.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/BrokenDecorator.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/BrokenDecorator.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,15 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken30;
+
+import javax.decorator.Decorates;
+import javax.decorator.Decorator;
+import javax.enterprise.inject.Current;
+import javax.enterprise.inject.Initializer;
+
+@Decorator
+class BrokenDecorator implements EspooLocal_Broken
+{
+ @Decorates EspooLocal_Broken espooLocal;
+
+ @Initializer
+ public void init(@Current District district) {}
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/District.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/District.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/District.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,13 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken30;
+
+import javax.enterprise.context.Dependent;
+
+@Dependent
+class District
+{
+ public void ping()
+ {
+
+ }
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EnterpriseBeanWithNonPassivatingInitializerFieldInDecoratorTest.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EnterpriseBeanWithNonPassivatingInitializerFieldInDecoratorTest.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EnterpriseBeanWithNonPassivatingInitializerFieldInDecoratorTest.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,26 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken30;
+
+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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@SpecVersion("20090625")
+public class EnterpriseBeanWithNonPassivatingInitializerFieldInDecoratorTest extends
AbstractJSR299Test
+{
+ @Test(groups = { "contexts", "passivation", "ri-broken"
})
+ @SpecAssertion(section = "6.6.4", id = "bdf")
+ public void testSessionBeanWithNonPassivatingInitializerFieldInDecoratorFails()
+ {
+ assert false;
+ }
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EspooLocal_Broken.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EspooLocal_Broken.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/EspooLocal_Broken.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken30;
+
+import javax.ejb.Local;
+
+@Local
+public interface EspooLocal_Broken
+{
+
+}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/Espoo_Broken.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/Espoo_Broken.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken30/Espoo_Broken.java 2009-08-05
03:51:22 UTC (rev 3402)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.tests.context.passivating.broken30;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.enterprise.context.SessionScoped;
+import javax.interceptor.Interceptors;
+
+@Stateful
+@SessionScoped
+(a)Interceptors(BrokenDecorator.class)
+class Espoo_Broken implements EspooLocal_Broken
+{
+ @Remove
+ public void bye() {
+ }
+}
Show replies by date