[webbeans-commits] Webbeans SVN: r3060 - tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Wed Jul 15 22:07:29 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-07-15 22:07:29 -0400 (Wed, 15 Jul 2009)
New Revision: 3060
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java
Log:
updated passivation tests - needs major review
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-16 01:47:19 UTC (rev 3059)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/context/passivating/PassivatingContextTest.java 2009-07-16 02:07:29 UTC (rev 3060)
@@ -24,31 +24,30 @@
* @author Nicklas Karlsson
* @author David Allen
*
- * Spec version: PRD2
+ * Spec version: 20090625
*/
@Artifact
@BeansXml("beans.xml")
@Packaging(PackagingType.EAR)
public class PassivatingContextTest extends AbstractJSR299Test
{
-
private static final Annotation BIG_LITERAL = new AnnotationLiteral<Big>() {};
- @Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "b")
- public void testSimpleWebBeanWithSerializableImplementationClassOK()
+ @Test(groups = { "contexts", "passivation", "review" })
+ @SpecAssertion(section = "6.6.1", id = "b")
+ public void testManagedWebBeanWithSerializableImplementationClassOK()
{
Set<Bean<Jyvaskyla>> beans = getBeans(Jyvaskyla.class);
assert !beans.isEmpty();
}
- @Test @SpecAssertion(section="8.4", id = "ca")
+ @Test @SpecAssertion(section="unknown", id = "unknown")
public void testInjectionOfDependentSerializableProductIntoNormalBean()
{
getInstanceByType(NumberConsumer.class).ping();
}
- @Test @SpecAssertion(section="8.4", id = "cb")
+ @Test @SpecAssertion(section="unknown", id = "unknown")
public void testInjectionOfDependentPrimitiveProductIntoNormalBean()
{
getInstanceByType(FooConsumer.class).ping();
@@ -56,10 +55,10 @@
@Test(groups = { "contexts", "passivation" })
@SpecAssertions({
- @SpecAssertion(section = "8.4", id = "f"),
- @SpecAssertion(section = "8.4", id = "i")
+ @SpecAssertion(section = "6.6.4", id = "unknown"),
+ @SpecAssertion(section = "6.6.4", id = "unknown")
})
- public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
+ public void testManagedWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
{
Kajaani instance = getInstanceByType(Kajaani.class);
instance.setTheNumber(100);
@@ -85,7 +84,7 @@
* @throws IOException
*/
@Test(groups = { "contexts", "passivation", "ri-broken" })
- @SpecAssertion(section = "8.4", id = "j")
+ @SpecAssertion(section = "6.6.2", id = "unknown")
public void testDependentEJBsAreSerializable() throws IOException, ClassNotFoundException
{
Set<Bean<Vaasa>> vaasaBeans = getBeans(Vaasa.class);
@@ -94,22 +93,22 @@
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "l")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
+ @SpecAssertion(section = "6.6.2", id = "unknown")
+ public void testManagedDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
{
Set<Bean<Joensuu>> beans = getBeans(Joensuu.class);
assert !beans.isEmpty();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "6.6.2", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Nokia_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
Set<Bean<Hyvinkaa>> beans = getBeans(Hyvinkaa.class);
@@ -117,56 +116,56 @@
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "r")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Loviisa_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "s")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Kuopio_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "t")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
getInstanceByType(Violation2.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Uusikaupunki_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "q")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
{
getInstanceByType(Salo_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "r")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Loviisa_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "s")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
{
getInstanceByType(Mikkeli_Broken.class).ping();
}
@Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "t")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
{
getInstanceByType(Violation2.class,BIG_LITERAL).ping();
@@ -181,14 +180,14 @@
}
@Test(expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "8.4", id = "cc")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testNonSerializableProducerFieldDeclaredPassivatingThrowsIllegalProductException()
{
getInstanceByType(HelsinkiNonSerializable.class).ping();
}
@Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "8.4", id = "v")
+ @SpecAssertion(section = "unknown", id = "unknown")
public void testIsSerializableOnBean()
{
assert !getBeans(Sysma.class).iterator().next().isSerializable();
More information about the weld-commits
mailing list