[webbeans-commits] Webbeans SVN: r1674 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit: context/passivating and 10 other directories.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Tue Feb 24 03:35:40 EST 2009
Author: shane.bryzak at jboss.com
Date: 2009-02-24 03:35:39 -0500 (Tue, 24 Feb 2009)
New Revision: 1674
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/CityBinding.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/DependentInterceptorSerializable.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/Kaarina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/Hamina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/NonSerializableTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/CityInterface.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/DependentDecoratorSerializable.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/Porvoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/CityBinding.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/DependentInterceptorSerializable.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/Kotka_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/CityInterface.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/DependentDecoratorSerializable.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/Raisio_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/NonSerializableTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Vantaa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Violation.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Loviisa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/NonSerializableTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Violation.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Forssa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/NonSerializableTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Violation.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/City.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/NonSerializableTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Peraseinajoki.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation2.java
Removed:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Forssa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Hamina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kaarina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kotka_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Loviisa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Peraseinajoki.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Porvoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Raisio_Broken.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Vantaa_Broken.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java
Log:
removed deployBeans()
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/NormalContextTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -10,6 +10,7 @@
import org.hibernate.tck.annotations.SpecAssertion;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@@ -24,12 +25,13 @@
*
* Spec version: PRD2
*/
+ at Artifact
public class NormalContextTest extends AbstractDeclarativeTest
{
Context context;
- @BeforeMethod
+ @BeforeMethod(dependsOnMethods = "beforeMethod")
public void initContext()
{
context = new DummyContext();
@@ -40,8 +42,6 @@
@SpecAssertion(section = "8.1", id = "a")
public void testGetReturnsExistingInstance()
{
- deployBeans(MySessionBean.class);
-
Contextual<MySessionBean> mySessionBean = getCurrentManager().resolveByType(MySessionBean.class).iterator().next();
MyCreationalContext<MySessionBean> myCreationalContext = new MyCreationalContext<MySessionBean>();
MySessionBean beanInstance = getCurrentManager().getContext(SessionScoped.class).get(mySessionBean, myCreationalContext);
@@ -54,8 +54,6 @@
@SpecAssertion(section = "8.1", id = "b")
public void testGetWithoutCreationalContextReturnsNull()
{
- deployBeans(MySessionBean.class);
-
Contextual<MySessionBean> mySessionBean = getCurrentManager().resolveByType(MySessionBean.class).iterator().next();
assert getCurrentManager().getContext(SessionScoped.class).get(mySessionBean) == null;
}
@@ -64,7 +62,6 @@
@SpecAssertion(section = "8.1", id = "c")
public void testGetWithCreationalContextReturnsNewInstance()
{
- deployBeans();
MyContextual bean = new MyContextual(getCurrentManager());
bean.setShouldReturnNullInstances(false);
getCurrentManager().addBean(bean);
@@ -93,8 +90,6 @@
@SpecAssertion(section = "8.1", id = "e")
public void testGetMayNotCreateNewInstanceUnlessCreationalContextGiven()
{
- deployBeans(MySessionBean.class, MyApplicationBean.class);
-
Contextual<MySessionBean> mySessionBean = getCurrentManager().resolveByType(MySessionBean.class).iterator().next();
assert getCurrentManager().getContext(SessionScoped.class).get(mySessionBean) == null;
@@ -130,7 +125,6 @@
@SpecAssertion(section = "8.1", id = "g")
public void testDestroyedInstanceMustNotBeReturnedByGet()
{
- deployBeans(MySessionBean.class, MyApplicationBean.class);
Bean<MySessionBean> mySessionBean = getCurrentManager().resolveByType(MySessionBean.class).iterator().next();
MyCreationalContext<MySessionBean> myCreationalContext = new MyCreationalContext<MySessionBean>();
MySessionBean beanInstance = getCurrentManager().getContext(SessionScoped.class).get(mySessionBean, myCreationalContext);
@@ -154,7 +148,6 @@
@SpecAssertion(section = "8.1", id = "h")
public void testInvokingGetOnInactiveContextFails()
{
- deployBeans(MySessionBean.class);
Context sessionContext = getCurrentManager().getContext(SessionScoped.class);
assert sessionContext.isActive();
setContextInactive(sessionContext);
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Forssa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Forssa_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Forssa_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,21 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.context.SessionScoped;
-import javax.inject.Current;
-import javax.inject.Initializer;
-
- at SessionScoped
-class Forssa_Broken implements Serializable
-{
- private static final long serialVersionUID = 2155797154677120837L;
-
- public Forssa_Broken() {
- }
-
- @Initializer
- public Forssa_Broken(@Current Violation reference) {
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Hamina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Hamina_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Hamina_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,9 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import javax.context.SessionScoped;
-
- at SessionScoped
-class Hamina_Broken
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kaarina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kaarina_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kaarina_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,20 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import javax.context.SessionScoped;
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-
- at Stateful
- at SessionScoped
-class Kaarina_Broken
-{
- @CityBinding
- public void foo()
- {
- }
-
- @Remove
- public void bye()
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kotka_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kotka_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Kotka_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,16 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.context.SessionScoped;
-
- at SessionScoped
-class Kotka_Broken implements Serializable
-{
- private static final long serialVersionUID = -1208921426884983474L;
-
- @CityBinding
- public void foo() {
-
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Loviisa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Loviisa_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Loviisa_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,21 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.context.SessionScoped;
-import javax.inject.Current;
-import javax.inject.Initializer;
-
- at SessionScoped
-class Loviisa_Broken extends City implements Serializable
-{
- private static final long serialVersionUID = -2866858442948392508L;
-
- public Loviisa_Broken() {
- }
-
- @Initializer
- public Loviisa_Broken(@Current Violation reference) {
-
- }
-}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/PassivatingContextTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -5,7 +5,6 @@
import javax.context.Context;
import javax.context.SessionScoped;
-import javax.inject.DefinitionException;
import javax.inject.IllegalProductException;
import javax.inject.UnserializableDependencyException;
import javax.inject.manager.Bean;
@@ -13,6 +12,7 @@
import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.testng.annotations.Test;
/**
@@ -22,20 +22,13 @@
*
* Spec version: PRD2
*/
+ at Artifact
public class PassivatingContextTest extends AbstractDeclarativeTest
{
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "8.4", id = "b")
- public void testSimpleWebBeanWithNonSerializableImplementationClassFails()
- {
- deployBeans(Hamina_Broken.class);
- }
-
@Test(groups = { "contexts", "passivation" })
@SpecAssertion(section = "8.4", id = "b")
public void testSimpleWebBeanWithSerializableImplementationClassOK()
{
- deployBeans(Jyvaskyla.class);
Set<Bean<Jyvaskyla>> beans = getCurrentManager().resolveByType(Jyvaskyla.class);
assert !beans.isEmpty();
}
@@ -43,14 +36,12 @@
@Test @SpecAssertion(section="8.4", id = "ca")
public void testInjectionOfDependentSerializableProductIntoNormalBean()
{
- deployBeans(Generator.class, NumberConsumer.class);
getCurrentManager().getInstanceByType(NumberConsumer.class).ping();
}
@Test @SpecAssertion(section="8.4", id = "cb")
public void testInjectionOfDependentPrimitiveProductIntoNormalBean()
{
- deployBeans(Generator.class, FooConsumer.class);
getCurrentManager().getInstanceByType(FooConsumer.class).ping();
}
@@ -61,7 +52,6 @@
})
public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
{
- deployBeans(Kajaani.class);
Kajaani instance = getCurrentManager().getInstanceByType(Kajaani.class);
instance.setTheNumber(100);
Context sessionContext = getCurrentManager().getContext(SessionScoped.class);
@@ -81,45 +71,7 @@
return resurrected.toString().equals(instance.toString());
}
- @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "j")
- public void testDependentInterceptorsOfStatefulEnterpriseBeanMustBeSerializable()
- {
- //deployBeans(Kaarina_Broken.class);
- assert false;
- }
-
/**
- * On the other hand, dependent objects (including interceptors and
- * decorators with scope @Dependent) of a stateful session bean or of a Web
- * Bean with a passivating scope must be serialized and deserialized along
- * with their owner
- */
- @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "j")
- public void testDependentDecoratorsOfStatefulEnterpriseBeanMustBeSerializable()
- {
- //deployBeans(Porvoo_Broken.class);
- assert false;
- }
-
- @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "k")
- public void testDependentInterceptorsOfWebBeanWithPassivatingScopeMustBeSerializable()
- {
- //deployBeans(Kotka_Broken.class);
- assert false;
- }
-
- @Test(groups = { "contexts", "passivation", "stub" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "k")
- public void testDependentDecoratorsOfWebBeansWithPassivatingScopeMustBeSerializable()
- {
- //deployBeans(Raisio_Broken.class);
- assert false;
- }
-
- /**
* @throws ClassNotFoundException
* @throws IOException
*/
@@ -127,7 +79,6 @@
@SpecAssertion(section = "8.4", id = "j")
public void testDependentEJBsAreSerializable() throws IOException, ClassNotFoundException
{
- deployBeans(Vaasa.class, Helsinki.class);
Set<Bean<Vaasa>> vaasaBeans = getCurrentManager().resolveByType(Vaasa.class);
assert vaasaBeans.size() == 1;
assert testSerialize(vaasaBeans.iterator().next());
@@ -137,52 +88,21 @@
@SpecAssertion(section = "8.4", id = "k")
public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanFails()
{
- deployBeans(Violation.class, Espoo_Broken.class);
getCurrentManager().getInstanceByType(Espoo_Broken.class);
}
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "l")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(Vantaa_Broken.class, Violation.class);
- }
-
@Test(groups = { "contexts", "passivation" })
@SpecAssertion(section = "8.4", id = "l")
public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
{
- deployBeans(Joensuu.class, Violation.class);
Set<Bean<Joensuu>> beans = getCurrentManager().resolveByType(Joensuu.class);
assert !beans.isEmpty();
}
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "m")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(Loviisa_Broken.class, Violation.class);
- }
-
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "n")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(Forssa_Broken.class, Violation.class);
- }
-
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "8.4", id = "o")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoProducerMethodParameterWithPassivatingScopeFails()
- {
- deployBeans(Peraseinajoki.class, Violation.class, Violation2.class);
- }
-
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
@SpecAssertion(section = "8.4", id = "q")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
- deployBeans(CityProducer2.class, Nokia_Broken.class);
getCurrentManager().getInstanceByType(Nokia_Broken.class).ping();
}
@@ -190,7 +110,6 @@
@SpecAssertion(section = "8.4", id = "q")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
- deployBeans(CityProducer2.class, Hyvinkaa.class);
Set<Bean<Hyvinkaa>> beans = getCurrentManager().resolveByType(Hyvinkaa.class);
assert !beans.isEmpty();
}
@@ -199,7 +118,6 @@
@SpecAssertion(section = "8.4", id = "r")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
- deployBeans(CityProducer2.class, Loviisa_Broken.class);
getCurrentManager().getInstanceByType(Loviisa_Broken.class).ping();
}
@@ -207,7 +125,6 @@
@SpecAssertion(section = "8.4", id = "s")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
- deployBeans(CityProducer2.class, Kuopio_Broken.class);
getCurrentManager().getInstanceByType(Kuopio_Broken.class).ping();
}
@@ -215,7 +132,6 @@
@SpecAssertion(section = "8.4", id = "t")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
- deployBeans(CityProducer2.class, Jamsa_Broken.class);
getCurrentManager().getInstanceByType(Jamsa_Broken.class).ping();
}
@@ -223,7 +139,6 @@
@SpecAssertion(section = "8.4", id = "q")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
- deployBeans(CityProducer.class, Uusikaupunki_Broken.class);
getCurrentManager().getInstanceByType(Uusikaupunki_Broken.class).ping();
}
@@ -231,7 +146,6 @@
@SpecAssertion(section = "8.4", id = "q")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
- deployBeans(CityProducer.class, Salo_Broken.class);
getCurrentManager().getInstanceByType(Salo_Broken.class).ping();
}
@@ -239,7 +153,6 @@
@SpecAssertion(section = "8.4", id = "r")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
- deployBeans(CityProducer.class, Loviisa_Broken.class);
getCurrentManager().getInstanceByType(Loviisa_Broken.class).ping();
}
@@ -247,7 +160,6 @@
@SpecAssertion(section = "8.4", id = "s")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
- deployBeans(CityProducer.class, Mikkeli_Broken.class);
getCurrentManager().getInstanceByType(Mikkeli_Broken.class).ping();
}
@@ -256,7 +168,6 @@
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
// TODO Not quite sure what this test is doing
- deployBeans(CityProducer.class, Jamsa_Broken.class);
getCurrentManager().getInstanceByType(Jamsa_Broken.class).ping();
}
}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Peraseinajoki.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Peraseinajoki.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Peraseinajoki.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,16 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import javax.context.SessionScoped;
-import javax.inject.Current;
-import javax.inject.Produces;
-
-class Peraseinajoki extends City
-{
-
- @Produces @SessionScoped
- public Violation2 create(@Current Violation reference)
- {
- return new Violation2();
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Porvoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Porvoo_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Porvoo_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,19 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import javax.context.SessionScoped;
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-
- at Stateful
- at SessionScoped
-class Porvoo_Broken implements CityInterface
-{
- public void foo()
- {
- }
-
- @Remove
- public void bye()
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Raisio_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Raisio_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Raisio_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,15 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.context.SessionScoped;
-
- at SessionScoped
-class Raisio_Broken implements CityInterface, Serializable
-{
- private static final long serialVersionUID = 2726489129474229549L;
-
- public void foo()
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Vantaa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Vantaa_Broken.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/Vantaa_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -1,30 +0,0 @@
-package org.jboss.jsr299.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.context.SessionScoped;
-import javax.inject.Current;
-
- at SessionScoped
-class Vantaa_Broken implements Serializable
-{
- private static final long serialVersionUID = -1686562136639336613L;
-
- @Current
- private Violation reference;
-
- public Violation getReference()
- {
- return reference;
- }
-
- public void setReference(Violation reference)
- {
- this.reference = reference;
- }
-
- public String test() {
- return reference.toString();
- }
-
-}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/CityBinding.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/CityBinding.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/CityBinding.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,20 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken1;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.context.Dependent;
+import javax.interceptor.InterceptorBindingType;
+
+ at InterceptorBindingType
+ at Dependent
+ at Target({TYPE, METHOD})
+ at Retention(RUNTIME)
+ at interface CityBinding
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/DependentInterceptorSerializable.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/DependentInterceptorSerializable.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/DependentInterceptorSerializable.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken1;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class DependentInterceptorSerializable extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation", "stub" })
+ @SpecAssertion(section = "8.4", id = "j")
+ public void testDependentInterceptorsOfStatefulEnterpriseBeanMustBeSerializable()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/Kaarina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/Kaarina_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken1/Kaarina_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,20 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken1;
+
+import javax.context.SessionScoped;
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+
+ at Stateful
+ at SessionScoped
+class Kaarina_Broken
+{
+ @CityBinding
+ public void foo()
+ {
+ }
+
+ @Remove
+ public void bye()
+ {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/Hamina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/Hamina_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/Hamina_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken2;
+
+import javax.context.SessionScoped;
+
+ at SessionScoped
+class Hamina_Broken
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/NonSerializableTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/NonSerializableTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken2/NonSerializableTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,28 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken2;
+
+import javax.inject.DefinitionException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+/**
+ *
+ * @author Nicklas Karlsson
+ * @author David Allen
+ *
+ * Spec version: PRD2
+ */
+ at Artifact
+ at ExpectedDeploymentException(DefinitionException.class)
+public class NonSerializableTest extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "8.4", id = "b")
+ public void testSimpleWebBeanWithNonSerializableImplementationClassFails()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/CityInterface.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/CityInterface.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/CityInterface.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken3;
+
+interface CityInterface
+{
+ public void foo();
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/DependentDecoratorSerializable.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/DependentDecoratorSerializable.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/DependentDecoratorSerializable.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken3;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class DependentDecoratorSerializable extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation", "stub" })
+ @SpecAssertion(section = "8.4", id = "j")
+ public void testDependentDecoratorsOfStatefulEnterpriseBeanMustBeSerializable()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/Porvoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/Porvoo_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken3/Porvoo_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,19 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken3;
+
+import javax.context.SessionScoped;
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+
+ at Stateful
+ at SessionScoped
+class Porvoo_Broken implements CityInterface
+{
+ public void foo()
+ {
+ }
+
+ @Remove
+ public void bye()
+ {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/CityBinding.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/CityBinding.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/CityBinding.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,20 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken4;
+
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.context.Dependent;
+import javax.interceptor.InterceptorBindingType;
+
+ at InterceptorBindingType
+ at Dependent
+ at Target({TYPE, METHOD})
+ at Retention(RUNTIME)
+ at interface CityBinding
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/DependentInterceptorSerializable.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/DependentInterceptorSerializable.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/DependentInterceptorSerializable.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken4;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class DependentInterceptorSerializable extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation", "stub" })
+ @SpecAssertion(section = "8.4", id = "k")
+ public void testDependentInterceptorsOfWebBeanWithPassivatingScopeMustBeSerializable()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/Kotka_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/Kotka_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken4/Kotka_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken4;
+
+import java.io.Serializable;
+
+import javax.context.SessionScoped;
+
+ at SessionScoped
+class Kotka_Broken implements Serializable
+{
+ private static final long serialVersionUID = -1208921426884983474L;
+
+ @CityBinding
+ public void foo() {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/CityInterface.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/CityInterface.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/CityInterface.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken5;
+
+interface CityInterface
+{
+ public void foo();
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/DependentDecoratorSerializable.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/DependentDecoratorSerializable.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/DependentDecoratorSerializable.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,20 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken5;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class DependentDecoratorSerializable
+{
+ @Test(groups = { "contexts", "passivation", "stub" })
+ @SpecAssertion(section = "8.4", id = "k")
+ public void testDependentDecoratorsOfWebBeansWithPassivatingScopeMustBeSerializable()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/Raisio_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/Raisio_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken5/Raisio_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,15 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken5;
+
+import java.io.Serializable;
+
+import javax.context.SessionScoped;
+
+ at SessionScoped
+class Raisio_Broken implements CityInterface, Serializable
+{
+ private static final long serialVersionUID = 2726489129474229549L;
+
+ public void foo()
+ {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/NonSerializableTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/NonSerializableTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/NonSerializableTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken6;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class NonSerializableTest extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "8.4", id = "l")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Vantaa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Vantaa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Vantaa_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,30 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken6;
+
+import java.io.Serializable;
+
+import javax.context.SessionScoped;
+import javax.inject.Current;
+
+ at SessionScoped
+class Vantaa_Broken implements Serializable
+{
+ private static final long serialVersionUID = -1686562136639336613L;
+
+ @Current
+ private Violation reference;
+
+ public Violation getReference()
+ {
+ return reference;
+ }
+
+ public void setReference(Violation reference)
+ {
+ this.reference = reference;
+ }
+
+ public String test() {
+ return reference.toString();
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Violation.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Violation.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken6/Violation.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken6;
+
+import javax.context.Dependent;
+
+ at Dependent
+class Violation
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Loviisa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Loviisa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Loviisa_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken7;
+
+import java.io.Serializable;
+
+import javax.context.SessionScoped;
+import javax.inject.Current;
+import javax.inject.Initializer;
+
+ at SessionScoped
+class Loviisa_Broken extends City implements Serializable
+{
+ private static final long serialVersionUID = -2866858442948392508L;
+
+ public Loviisa_Broken() {
+ }
+
+ @Initializer
+ public Loviisa_Broken(@Current Violation reference) {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/NonSerializableTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/NonSerializableTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/NonSerializableTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken7;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class NonSerializableTest extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "8.4", id = "m")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Violation.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Violation.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken7/Violation.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken7;
+
+import javax.context.Dependent;
+
+ at Dependent
+class Violation
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Forssa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Forssa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Forssa_Broken.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken8;
+
+import java.io.Serializable;
+
+import javax.context.SessionScoped;
+import javax.inject.Current;
+import javax.inject.Initializer;
+
+ at SessionScoped
+class Forssa_Broken implements Serializable
+{
+ private static final long serialVersionUID = 2155797154677120837L;
+
+ public Forssa_Broken() {
+ }
+
+ @Initializer
+ public Forssa_Broken(@Current Violation reference) {
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/NonSerializableTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/NonSerializableTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/NonSerializableTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken8;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class NonSerializableTest extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "8.4", id = "n")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Violation.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Violation.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken8/Violation.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken8;
+
+import javax.context.Dependent;
+
+ at Dependent
+class Violation
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/City.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/City.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/City.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,8 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken9;
+
+class City
+{
+ public void ping() {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/NonSerializableTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/NonSerializableTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/NonSerializableTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,21 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken9;
+
+import javax.inject.UnserializableDependencyException;
+
+import org.hibernate.tck.annotations.SpecAssertion;
+import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
+import org.jboss.jsr299.tck.impl.packaging.ExpectedDeploymentException;
+import org.testng.annotations.Test;
+
+ at Artifact
+ at ExpectedDeploymentException(UnserializableDependencyException.class)
+public class NonSerializableTest extends AbstractDeclarativeTest
+{
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "8.4", id = "o")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoProducerMethodParameterWithPassivatingScopeFails()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Peraseinajoki.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Peraseinajoki.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Peraseinajoki.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,16 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken9;
+
+import javax.context.SessionScoped;
+import javax.inject.Current;
+import javax.inject.Produces;
+
+class Peraseinajoki extends City
+{
+
+ @Produces @SessionScoped
+ public Violation2 create(@Current Violation reference)
+ {
+ return new Violation2();
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken9;
+
+import javax.context.Dependent;
+
+ at Dependent
+class Violation
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation2.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation2.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/context/passivating/broken9/Violation2.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -0,0 +1,9 @@
+package org.jboss.jsr299.tck.unit.context.passivating.broken9;
+
+import javax.context.Dependent;
+
+ at Dependent
+class Violation2
+{
+
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java 2009-02-24 01:38:26 UTC (rev 1673)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/unit/implementation/producer/field/ProducerFieldLifecycleTest.java 2009-02-24 08:35:39 UTC (rev 1674)
@@ -12,6 +12,7 @@
import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractDeclarativeTest;
+import org.jboss.jsr299.tck.impl.packaging.Artifact;
import org.testng.annotations.Test;
/**
@@ -19,6 +20,7 @@
* Spec version: PRD2
*
*/
+ at Artifact
public class ProducerFieldLifecycleTest extends AbstractDeclarativeTest
{
/*
@@ -41,7 +43,6 @@
})
public void testProducerStaticFieldBean()
{
- deployBeans(StaticTarantulaProducer.class, TarantulaConsumer.class);
new RunInDependentContext()
{
@@ -64,7 +65,6 @@
})
public void testProducerFieldBeanCreate() throws Exception
{
- deployBeans(BlackWidowProducer.class, BlackWidowConsumer.class);
new RunInDependentContext()
{
@Override
@@ -80,7 +80,6 @@
@SpecAssertion(section = "6.8", id = "i")
public void testSpecializedBeanAlwaysUsed() throws Exception
{
- deployBeans(TarantulaProducer.class, SpecializedTarantulaProducer.class, TarantulaConsumer.class);
new RunInDependentContext()
{
@Override
@@ -100,7 +99,6 @@
})
public void testProducerFieldReturnsNullIsDependent() throws Exception
{
- deployBeans(NullSpiderProducer.class, NullSpiderConsumer.class);
new RunInDependentContext()
{
@Override
@@ -119,7 +117,6 @@
})
public void testProducerFieldReturnsNullIsNotDependent() throws Exception
{
- deployBeans(NullSpiderProducer_Broken.class, NullSpiderConsumer.class);
new RunInDependentContext()
{
@Override
More information about the weld-commits
mailing list