Author: shane.bryzak(a)jboss.com
Date: 2009-03-16 18:13:53 -0400 (Mon, 16 Mar 2009)
New Revision: 2053
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/HelsinkiNonSerializable.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/CityProducer.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java
Log:
8.4 tests
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/CityProducer.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/CityProducer.java 2009-03-16
22:04:04 UTC (rev 2052)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/CityProducer.java 2009-03-16
22:13:53 UTC (rev 2053)
@@ -1,10 +1,13 @@
package org.jboss.jsr299.tck.tests.context.passivating;
import javax.context.Dependent;
+import javax.context.SessionScoped;
import javax.inject.Produces;
@AnotherDeploymentType
class CityProducer
{
@Produces @Dependent public Violation reference = new Violation();
+
+ @Produces @SessionScoped public HelsinkiNonSerializable helsinki = new
HelsinkiNonSerializable();
}
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/HelsinkiNonSerializable.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/HelsinkiNonSerializable.java
(rev 0)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/HelsinkiNonSerializable.java 2009-03-16
22:13:53 UTC (rev 2053)
@@ -0,0 +1,6 @@
+package org.jboss.jsr299.tck.tests.context.passivating;
+
+class HelsinkiNonSerializable
+{
+
+}
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-03-16
22:04:04 UTC (rev 2052)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java 2009-03-16
22:13:53 UTC (rev 2053)
@@ -178,5 +178,12 @@
{
assert getCurrentManager().resolveByType(TurkuLocal.class).size() == 1;
}
+
+ @Test(expectedExceptions = IllegalProductException.class, groups =
"broken")
+ @SpecAssertion(section = "8.4", id = "cc")
+ public void
testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException()
+ {
+ getCurrentManager().getInstanceByType(HelsinkiNonSerializable.class);
+ }
}
Show replies by date