[webbeans-commits] Webbeans SVN: r3379 - ri/trunk/api/src/main/java/javax/enterprise/inject/spi.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2009-07-31 05:08:59 -0400 (Fri, 31 Jul 2009)
New Revision: 3379
Added:
ri/trunk/api/src/main/java/javax/enterprise/inject/spi/PassivationCapable.java
Log:
Added PassivationCapable interface to API
Added: ri/trunk/api/src/main/java/javax/enterprise/inject/spi/PassivationCapable.java
===================================================================
--- ri/trunk/api/src/main/java/javax/enterprise/inject/spi/PassivationCapable.java (rev 0)
+++ ri/trunk/api/src/main/java/javax/enterprise/inject/spi/PassivationCapable.java 2009-07-31 09:08:59 UTC (rev 3379)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package javax.enterprise.inject.spi;
+
+/**
+ * Used to indicate that a custom bean is passivation capable.
+ *
+ * @author Gavin King
+ * @author David Allen
+ *
+ */
+public interface PassivationCapable
+{
+ /**
+ * A string that uniquely identifies the Bean or Contextual. It is
+ * recommended that the string contain the package name of the class that
+ * implements Bean or Contextual.
+ *
+ * @return a unique identifier for the Bean or Contextual
+ */
+ public String getId();
+}
Property changes on: ri/trunk/api/src/main/java/javax/enterprise/inject/spi/PassivationCapable.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3378 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)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;
+
+@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();
+ }
+}
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3377 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating: broken22 and 2 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)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;
+
+@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;
+
+@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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@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;
+
+@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;
+
+@Stateful
+@SessionScoped
+(a)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;
+
+@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;
+
+@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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@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;
+
+@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;
+
+@Stateful
+@SessionScoped
+(a)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;
+
+@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;
+
+@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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@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;
+
+@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;
+
+@Stateful
+@SessionScoped
+(a)Interceptors(BrokenInterceptor.class)
+class Espoo_Broken implements EspooLocal_Broken
+{
+ @Remove
+ public void bye() {
+ }
+}
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3376 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating: broken21 and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-30 21:17:57 -0400 (Thu, 30 Jul 2009)
New Revision: 3376
Modified:
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/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
Log:
oops, i blame eclipse...
Modified: 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 2009-07-31 01:13:08 UTC (rev 3375)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/District.java 2009-07-31 01:17:57 UTC (rev 3376)
@@ -1,4 +1,4 @@
-package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+package org.jboss.jsr299.tck.tests.context.passivating.broken20;
import javax.enterprise.context.Dependent;
Modified: 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 2009-07-31 01:13:08 UTC (rev 3375)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/EspooLocal_Broken.java 2009-07-31 01:17:57 UTC (rev 3376)
@@ -1,4 +1,4 @@
-package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+package org.jboss.jsr299.tck.tests.context.passivating.broken20;
import javax.ejb.Local;
Modified: 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 2009-07-31 01:13:08 UTC (rev 3375)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken20/Espoo_Broken.java 2009-07-31 01:17:57 UTC (rev 3376)
@@ -1,4 +1,4 @@
-package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+package org.jboss.jsr299.tck.tests.context.passivating.broken20;
import javax.ejb.Remove;
import javax.ejb.Stateful;
Modified: 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 2009-07-31 01:13:08 UTC (rev 3375)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/District.java 2009-07-31 01:17:57 UTC (rev 3376)
@@ -1,4 +1,4 @@
-package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+package org.jboss.jsr299.tck.tests.context.passivating.broken21;
import javax.enterprise.context.Dependent;
Modified: 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 2009-07-31 01:13:08 UTC (rev 3375)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/EspooLocal_Broken.java 2009-07-31 01:17:57 UTC (rev 3376)
@@ -1,4 +1,4 @@
-package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+package org.jboss.jsr299.tck.tests.context.passivating.broken21;
import javax.ejb.Local;
Modified: 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 2009-07-31 01:13:08 UTC (rev 3375)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/broken21/Espoo_Broken.java 2009-07-31 01:17:57 UTC (rev 3376)
@@ -1,4 +1,4 @@
-package org.jboss.jsr299.tck.tests.context.passivating.broken10;
+package org.jboss.jsr299.tck.tests.context.passivating.broken21;
import javax.ejb.Remove;
import javax.ejb.Stateful;
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3375 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating: broken20 and 1 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)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;
+
+@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;
+
+@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;
+
+@Stateful
+@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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@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;
+
+@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;
+
+@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;
+
+@Stateful
+@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;
+
+@Artifact
+(a)Packaging(PackagingType.EAR)
+(a)ExpectedDeploymentException(DeploymentError.class)
+@SpecVersion("20090625")
+public class UnserializablePassivatingEnterpriseBeanInitializerTest extends AbstractJSR299Test
+{
+ @Test(groups = { "contexts", "passivation"})
+ @SpecAssertion(section = "6.6.4", id = "bc")
+ public void testDependentBeanWithNonSerializableImplementationInStatefulSessionBeanInitializerFails()
+ {
+ assert false;
+ }
+
+}
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3374 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-07-30 20:27:07 -0400 (Thu, 30 Jul 2009)
New Revision: 3374
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
fix all groupings for 6.6.4
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-30 17:11:12 UTC (rev 3373)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-07-31 00:27:07 UTC (rev 3374)
@@ -2710,7 +2710,7 @@
</group>
<group>
- <text>A producer method is passivation capable if and only if it never returns a value which is not passivation capable at runtime. A producer method with a return type that implements or extends serializable is passivation capable. A producer method with a return type that is declared final and does not implement |Serializable| is not passivation capable.</text>
+ <text>A producer method is passivation capable if and only if it never returns a value which is not passivation capable at runtime. A producer method with a return type that implements or extends serializable is passivation capable. A producer method with a return type that is declared |final| and does not implement |Serializable| is not passivation capable.</text>
<assertion id="ca">
<text>Test that a producer method with a serializable return type is passivation capable.</text>
@@ -2836,87 +2836,123 @@
<text>Test decorator with initializer method parameter.</text>
</assertion>
</group>
+
+ <group>
+ <text>If a stateful session bean has a non-transient injected field, bean constructor parameter or initializer method parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+
+ <assertion id="ba">
+ <text>Test with an injected field.</text>
+ </assertion>
- <assertion id="ba">
- <text>If a stateful session bean has a non-transient injected field~, bean constructor parameter or initializer method parameter~ that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
+ <assertion id="bb">
+ <text>Test with a bean constructor parameter.</text>
+ </assertion>
- <assertion id="bb">
- <text>If a stateful session bean has a non-transient ~injected field,~ bean constructor parameter ~or initializer method parameter~ that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
+ <assertion id="bc">
+ <text>Test with an initializer method parameter.</text>
+ </assertion>
+ </group>
+
+ <group>
+ <text>If a stateful session bean has an interceptor or decorator with a non-transient injected field, bean constructor parameter or initializer method parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+
+ <assertion id="bda">
+ <text>Test an interceptor with an injected field.</text>
+ </assertion>
+
+ <assertion id="bdb">
+ <text>Test an interceptor with a bean constructor parameter.</text>
+ </assertion>
+
+ <assertion id="bdc">
+ <text>Test an interceptor with an initializer method parameter.</text>
+ </assertion>
+
+ <assertion id="bdd">
+ <text>Test a decorator with an injected field.</text>
+ </assertion>
+
+ <assertion id="bde">
+ <text>Test a decorator with a bean constructor parameter.</text>
+ </assertion>
+
+ <assertion id="bdf">
+ <text>Test a decorator with an initializer method parameter.</text>
+ </assertion>
+ </group>
+
+ <group>
+ <text>If a producer method declares a passivating scope and the container is able to determine that it is not passivation capable by inspecting its return type, or has a parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+
+ <assertion id="ca">
+ <text>Test a producer method with a non passivation-capable return type.</text>
+ </assertion>
- <assertion id="bc">
- <text>If a stateful session bean has a non-transient~ injected field, bean constructor parameter or~ initializer method parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="bda">
- <text>If a stateful session bean has an interceptor ~or decorator~ with a non-transient injected field~, bean constructor parameter or initializer method parameter~ that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="bdb">
- <text>If a stateful session bean has an interceptor ~or decorator~ with a non-transient ~injected field,~ bean constructor parameter ~or initializer method parameter~ that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="bdc">
- <text>If a stateful session bean has an interceptor ~or decorator~ with a non-transient ~injected field, bean constructor parameter or~ initializer method parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="bdd">
- <text>If a stateful session bean has an ~interceptor or~ decorator with a non-transient injected field~, bean constructor parameter or initializer method parameter~ that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="bde">
- <text>If a stateful session bean has an ~interceptor or~ decorator with a non-transient ~injected field,~ bean constructor parameter ~or initializer method parameter~ that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="bdf">
- <text>If a stateful session bean has an ~interceptor or~ decorator with a non-transient ~injected field, bean constructor parameter or~ initializer method parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
+ <assertion id="cb">
+ <text>Test a producer method with a parameter that does not resolve to a passivation capable dependency.</text>
+ </assertion>
+ </group>
- <assertion id="ca">
- <text>If a producer method declares a passivating scope and the container is able to determine that it is not passivation capable by inspecting its return type~, or has a parameter that does not resolve to a passivation capable dependency,~ then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="cb">
- <text>If a producer method declares a passivating scope and the container is able to determine that it~ is not passivation capable by inspecting its return type, or~ has a parameter that does not resolve to a passivation capable dependency, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
<assertion id="d">
<text>If a producer field declares a passivating scope and the container is able to determine that it is not passivation capable by inspecting its type, then the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4,
"Problems detected automatically by the container".</text>
</assertion>
-
- <assertion id="ea">
- <text>If a producer method ~or field~ which declares a passivating scope returns an unserializable object at runtime, the container must throw an |IllegalProductException|.</text>
- </assertion>
+
+ <group>
+ <text>If a producer method or field which declares a passivating scope returns an unserializable object at runtime, the container must throw an |IllegalProductException|.</text>
+
+ <assertion id="ea">
+ <text>Test with a producer method.</text>
+ </assertion>
+
+ <assertion id="eb">
+ <text>Test with a producer field.</text>
+ </assertion>
+ </group>
+
+ <group>
+ <text>If a producer method or field of scope |@Dependent| returns an unserializable object for injection into an injection point that requires a passivation capable dependency, the container must throw an |IllegalProductException|</text>
+
+ <assertion id="fa">
+ <text>Test for a deployment exception with a producer method.</text>
+ </assertion>
+
+ <assertion id="fab">
+ <text>Test for a runtime exception with a producer method.</text>
+ </assertion>
+
+ <assertion id="fb">
+ <text>Test for a deployment exception with a producer field.</text>
+ </assertion>
+
+ <assertion id="fbb">
+ <text>Test for a runtime exception with a producer field.</text>
+ </assertion>
+ </group>
+
+ <group>
+ <text>For a custom implementation of |Bean|, the container calls |getInjectionPoints()| to determine the injection points, and |InjectionPoint.isTransient()| to determine whether the injected point is a transient field.</text>
- <assertion id="eb">
- <text>If a producer ~method or~ field which declares a passivating scope returns an unserializable object at runtime, the container must throw an |IllegalProductException|.</text>
- </assertion>
-
- <assertion id="fa">
- <text>If a producer method ~or field~ of scope |@Dependent| returns an unserializable object for injection into an injection point that requires a passivation capable dependency, the container must throw an |IllegalProductException|</text>
- </assertion>
-
- <assertion id="fb">
- <text>If a producer ~method or~ field of scope |@Dependent| returns an unserializable object for injection into an injection point that requires a passivation capable dependency, the container must throw an |IllegalProductException|</text>
- </assertion>
-
- <assertion id="ga">
- <text>For a custom implementation of |Bean|, the container calls |getInjectionPoints()| to determine the injection points~, and |InjectionPoint.isTransient()| to determine whether the injected point is a transient field~.</text>
- </assertion>
-
- <assertion id="gb">
- <text>For a custom implementation of |Bean|, the container calls ~ |getInjectionPoints()| to determine the injection points, and~ |InjectionPoint.isTransient()| to determine whether the injected point is a transient field.</text>
- </assertion>
-
- <assertion id="ha">
- <text>If a bean which declares a passivating scope type~, or any stateful session bean,~ has a decorator which is not a passivation capable dependency, the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
- <assertion id="hb">
- <text>If ~a bean which declares a passivating scope type, or~ any stateful session bean, has a decorator which is not a passivation capable dependency, the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
+ <assertion id="ga">
+ <text>Test calling |getInjectionPoints()|.</text>
+ </assertion>
+
+ <assertion id="gb">
+ <text>Test calling |InjectionPoint.isTransient()|.</text>
+ </assertion>
+ </group>
+
+ <group>
+ <text>If a bean which declares a passivating scope type, or any stateful session bean, has a decorator which is not a passivation capable dependency, the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+
+ <assertion id="ha">
+ <text>Test with a bean which declares a passivating scope type.</text>
+ </assertion>
+
+ <assertion id="hb">
+ <text>Test with a stateful session bean.</text>
+ </assertion>
+ </group>
</section>
<section id="6.7" title="Context management for built-in scopes">
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3372 - tck/trunk/doc/reference/en-US.
by webbeans-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-07-30 13:01:23 -0400 (Thu, 30 Jul 2009)
New Revision: 3372
Modified:
tck/trunk/doc/reference/en-US/Author_Group.xml
tck/trunk/doc/reference/en-US/Book_Info.xml
tck/trunk/doc/reference/en-US/Book_Preface.xml
tck/trunk/doc/reference/en-US/configuration.xml
tck/trunk/doc/reference/en-US/eclipse-debugging.xml
tck/trunk/doc/reference/en-US/eclipse-running.xml
tck/trunk/doc/reference/en-US/executing.xml
tck/trunk/doc/reference/en-US/installation.xml
tck/trunk/doc/reference/en-US/introduction.xml
tck/trunk/doc/reference/en-US/master.xml
tck/trunk/doc/reference/en-US/part-background.xml
tck/trunk/doc/reference/en-US/part-execution.xml
tck/trunk/doc/reference/en-US/part-test-harness.xml
tck/trunk/doc/reference/en-US/reporting.xml
Log:
minor revisions
reference to appeals process chapter
Modified: tck/trunk/doc/reference/en-US/Author_Group.xml
===================================================================
--- tck/trunk/doc/reference/en-US/Author_Group.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/Author_Group.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE authorgroup PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
-
-
<authorgroup>
<author>
<firstname>Gavin</firstname>
Modified: tck/trunk/doc/reference/en-US/Book_Info.xml
===================================================================
--- tck/trunk/doc/reference/en-US/Book_Info.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/Book_Info.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,11 +1,10 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookinfo PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<bookinfo>
<copyright>
<year>2009</year>
<holder>
- Red Hat Middleware LLC, and individual contributors listed as
- authors.
+ Red Hat Middleware LLC, and individual contributors listed as authors.
</holder>
</copyright>
<releaseinfo><literallayout>Licensed under the Apache License, Version 2.0 (the "License");
Modified: tck/trunk/doc/reference/en-US/Book_Preface.xml
===================================================================
--- tck/trunk/doc/reference/en-US/Book_Preface.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/Book_Preface.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preface PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<preface id="book-preface">
<title>Preface</title>
@@ -77,10 +77,11 @@
<para>
<xref linkend="introduction" />
gives an overview of the principles that apply generally to all
- Technology Compatibility Kits (TCKs) and describes the CDI TCK
- architecture and components. It also includes a broad overview of
- how the TCK is executed and lists the platforms on which the TCK
- has been tested and verified.
+ Technology Compatibility Kits (TCKs), outlines the appeals
+ process and describes the CDI TCK architecture and components. It
+ also includes a broad overview of how the TCK is executed and
+ lists the platforms on which the TCK has been tested and
+ verified.
</para>
</listitem>
<listitem>
Modified: tck/trunk/doc/reference/en-US/configuration.xml
===================================================================
--- tck/trunk/doc/reference/en-US/configuration.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/configuration.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="configuration">
<title>Configuration</title>
Modified: tck/trunk/doc/reference/en-US/eclipse-debugging.xml
===================================================================
--- tck/trunk/doc/reference/en-US/eclipse-debugging.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/eclipse-debugging.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="eclipse-debugging">
<title>Debugging Tests in Eclipse</title>
Modified: tck/trunk/doc/reference/en-US/eclipse-running.xml
===================================================================
--- tck/trunk/doc/reference/en-US/eclipse-running.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/eclipse-running.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="eclipse-running">
<title>Running Tests in Eclipse</title>
Modified: tck/trunk/doc/reference/en-US/executing.xml
===================================================================
--- tck/trunk/doc/reference/en-US/executing.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/executing.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="executing">
<title>Executing the Test Suite</title>
Modified: tck/trunk/doc/reference/en-US/installation.xml
===================================================================
--- tck/trunk/doc/reference/en-US/installation.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/installation.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="installation">
<title>Installation</title>
Modified: tck/trunk/doc/reference/en-US/introduction.xml
===================================================================
--- tck/trunk/doc/reference/en-US/introduction.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/introduction.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="introduction">
<title>Introduction (CDI TCK)</title>
Modified: tck/trunk/doc/reference/en-US/master.xml
===================================================================
--- tck/trunk/doc/reference/en-US/master.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/master.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<book lang="en">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Book_Info.xml"/>
Modified: tck/trunk/doc/reference/en-US/part-background.xml
===================================================================
--- tck/trunk/doc/reference/en-US/part-background.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/part-background.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,19 +1,19 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<part>
<title>Getting Acquainted with the TCK</title>
<partintro>
<para>
- The CDI TCK must be used to ensure that your implementation conforms
- to the CDI specification. This part introduces the TCK, gives some
- background about its purpose and states the requirements for passing
- the TCK.
+ The CDI TCK must be used to ensure that your implementation conforms to
+ the CDI specification. This part introduces the TCK, gives some
+ background about its purpose, states the requirements for passing the
+ TCK and outlines the appeals process.
</para>
<para>
- In this part you will learn where to obtain the CDI TCK and
- supporting software. You are then presented with recommendations of how
- to organize and configure the software so that you are ready to execute
+ In this part you will learn where to obtain the CDI TCK and supporting
+ software. You are then presented with recommendations of how to
+ organize and configure the software so that you are ready to execute
the TCK.
</para>
<para>
@@ -21,6 +21,7 @@
</para>
</partintro>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="introduction.xml" />
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="appeals-process.xml" />
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="installation.xml" />
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="configuration.xml" />
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="reporting.xml" />
Modified: tck/trunk/doc/reference/en-US/part-execution.xml
===================================================================
--- tck/trunk/doc/reference/en-US/part-execution.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/part-execution.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<part>
<title>Executing and Debugging Tests</title>
Modified: tck/trunk/doc/reference/en-US/part-test-harness.xml
===================================================================
--- tck/trunk/doc/reference/en-US/part-test-harness.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/part-test-harness.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<part id="test-harness">
<title>JBoss Test Harness</title>
Modified: tck/trunk/doc/reference/en-US/reporting.xml
===================================================================
--- tck/trunk/doc/reference/en-US/reporting.xml 2009-07-30 17:00:42 UTC (rev 3371)
+++ tck/trunk/doc/reference/en-US/reporting.xml 2009-07-30 17:01:23 UTC (rev 3372)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
<chapter id="reporting">
<title>Reporting</title>
@@ -6,7 +6,7 @@
This chapter covers the two types of reports that can be generated from
the TCK, an assertion coverage report and the test execution results. The
chapter also justifies why the TCK is good indicator of how accurately an
- implementation conforms to the JSR 299 specification.
+ implementation conforms to the JSR-299 specification.
</para>
<section>
<title>CDI TCK Coverage Report</title>
@@ -14,7 +14,7 @@
A specification can be distilled into a collection of assertions that
define the behavior of the software. This section introduces the CDI
TCK coverage report, which documents the relationship between the
- assertions that have been identified in the JSR 299 specification
+ assertions that have been identified in the JSR-299 specification
document and the tests in the TCK test suite.
</para>
<para>
@@ -24,7 +24,7 @@
<section>
<title>CDK TCK Assertions</title>
<para>
- The CDI TCK developers have analyzed the JSR 299 specification
+ The CDI TCK developers have analyzed the JSR-299 specification
document and identified the assertions that are present in each
chapter. Here's an example of one such assertion found in section
2.3.3:
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3371 - tck/trunk/doc/reference/en-US.
by webbeans-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-07-30 13:00:42 -0400 (Thu, 30 Jul 2009)
New Revision: 3371
Added:
tck/trunk/doc/reference/en-US/appeals-process.xml
Log:
appeals process chapter
Added: tck/trunk/doc/reference/en-US/appeals-process.xml
===================================================================
--- tck/trunk/doc/reference/en-US/appeals-process.xml (rev 0)
+++ tck/trunk/doc/reference/en-US/appeals-process.xml 2009-07-30 17:00:42 UTC (rev 3371)
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ ]>
+<chapter id="appeals-process">
+ <title>Appeals Process</title>
+ <para>
+ While the CDI TCK is rigourous about enforcing an implementation's
+ conformance to the JSR-299 specification, it's reasonable to assume that
+ an implementor may discover new and/or better ways to validate the
+ assertions. This chapter covers the appeals process, defined by the
+ Specification Lead, Red Hat Middleware LLC., which allows implementors of
+ the JSR-299 specification to challenge one or more tests defined by the
+ CDI TCK.
+ </para>
+ <para>
+ The appeals process identifies who can make challenges to the TCK, what
+ challenges to the TCK may be submitted, how these challenges are
+ submitted, how and by whom challenges are addressed and how accepted
+ challenges to the TCK are managed.
+ </para>
+ <para>
+ Following the recent adoption of transparency in the JCP, implementors
+ are encouraged to make their appeals public, which this process
+ facilitates. The JCP community should recognize that issue reports are a
+ central aspect of any good software and it's only natural to point out
+ shortcomings and strive to make improvements. Despite this good faith,
+ not all implementors will be comfortable with a public appeals process.
+ Therefore, further instructions will be forthcoming about how to make a
+ private appeal.
+ </para>
+ <section>
+ <title>Who can make challenges to the TCK?</title>
+ <para>
+ Any implementor may submit an appeal to challenge one or more tests in
+ the CDI TCK. In fact, members of the JSR-299 Expert Group (EG) encourage
+ this level of participation.
+ </para>
+ </section>
+ <section>
+ <title>What challenges to the TCK may be submitted?</title>
+ <para>
+ Any test case (e.g., <literal>@Artifact</literal> class,
+ <literal>@Test</literal> method), test case configuration (e.g.,
+ beans.xml), test beans, annotations and other resources may be
+ challenged by an appeal.
+ </para>
+ <para>
+ What is generally not challengable are the assertions made by the
+ specification. The specification document is controlled by a separate
+ process and challenges to it should be handled through the JSR-299 EG
+ by sending an e-mail to <ulink
+ url="mailto:jsr299-comments@jcp.org">jsr299-comments(a)jcp.org</ulink>.
+ </para>
+ </section>
+ <section>
+ <title>How these challenges are submitted?</title>
+ <para>
+ To submit a challenge, a new issue should be created in the <ulink
+ url="https://jira.jboss.org/jira/browse/WBTCK">WBTCK project</ulink>
+ of the JBoss JIRA using the Issue Type: Bug. The appellant should
+ complete the Summary, Component (TCK Appeal), Environment and
+ Description Field only. Any communication regarding the issue should
+ be pursed in the comments of the filed issue for accurate record.
+ </para>
+ <para>
+ To submit an issue in the JBoss JIRA, you must have a (free) JBoss.com
+ member account. You can create a member account using the <ulink
+ url="http://www.jboss.org/index.html?op=checkage&module=user">on-line
+ registration</ulink>.
+ </para>
+ </section>
+ <section>
+ <title>How and by whom challenges are addressed?</title>
+ <para>
+ The challenges will be addressed in a timely fashion by the CDI TCK
+ Project Lead, as designated by Specification Lead, Red Hat Middleware
+ LLC. or his/her appointee. The appellant can also monitor the process
+ by following the issue report filed in the <ulink
+ url="https://jira.jboss.org/jira/browse/WBTCK">WBTCK project</ulink>
+ of the JBoss JIRA.
+ </para>
+ <para>
+ The current TCK Project Lead is listed on the <ulink
+ url="https://jira.jboss.org/jira/browse/WBTCK">WBTCK Project Summary
+ Page</ulink> on the JBoss JIRA.
+ </para>
+ </section>
+ <section>
+ <title>How accepted challenges to the TCK are managed?</title>
+ <para>
+ Accepted challenges will be acknowledged via the filed issue's comment
+ section. Communication between the CDI TCK Project Lead and the
+ appellant will take place via the issue comments. The issue's status
+ will be set to "Resolved" when the TCK project lead believes the issue
+ to be resolved. The appellant should, within 30 days, either close the
+ issue if they agree, or reopen the issue if they do not believe the
+ issue to be resolved.
+ </para>
+ <para>
+ Resolved issue not addressed for 30 days will be closed by the TCK
+ Project Lead. If the TCK Project Lead and appellant are unable to
+ agree on the issue resolution, it will be referred to the JSR-299
+ specification lead or his/her desginate.
+ </para>
+ </section>
+</chapter>
15 years, 3 months
[webbeans-commits] Webbeans SVN: r3370 - examples/branches/1.0.0.PREVIEW2/jsf2.
by webbeans-commits@lists.jboss.org
Author: rogerk
Date: 2009-07-30 12:13:47 -0400 (Thu, 30 Jul 2009)
New Revision: 3370
Modified:
examples/branches/1.0.0.PREVIEW2/jsf2/pom.xml
Log:
update pom version
Modified: examples/branches/1.0.0.PREVIEW2/jsf2/pom.xml
===================================================================
--- examples/branches/1.0.0.PREVIEW2/jsf2/pom.xml 2009-07-30 12:58:42 UTC (rev 3369)
+++ examples/branches/1.0.0.PREVIEW2/jsf2/pom.xml 2009-07-30 16:13:47 UTC (rev 3370)
@@ -5,7 +5,7 @@
<parent>
<groupId>org.jboss.webbeans.examples</groupId>
<artifactId>parent</artifactId>
- <version>1.0.0.PREVIEW2-PATCH2</version>
+ <version>1.0.0.PREVIEW2</version>
</parent>
<groupId>org.jboss.webbeans.examples</groupId>
15 years, 3 months