[webbeans-commits] Webbeans SVN: r210 - in ri/trunk/webbeans-ri: src/test/java/org/jboss/webbeans/test and 1 other directory.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Oct 30 04:02:51 EDT 2008


Author: nickarls
Date: 2008-10-30 04:02:51 -0400 (Thu, 30 Oct 2008)
New Revision: 210

Added:
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/PassivatingContextTest.java
Modified:
   ri/trunk/webbeans-ri/testng.xml
Log:
Stubs for passivation tests

Added: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/PassivatingContextTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/PassivatingContextTest.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/PassivatingContextTest.java	2008-10-30 08:02:51 UTC (rev 210)
@@ -0,0 +1,156 @@
+package org.jboss.webbeans.test;
+
+import javax.webbeans.manager.Context;
+
+import org.jboss.webbeans.contexts.RequestContext;
+import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.Test;
+
+/**
+ * 
+ * @author Nicklas Karlsson (nickarls at gmail.com)
+ * 
+ */
+ at SpecVersion("20081029-PDR")
+public class PassivatingContextTest extends AbstractTest
+{
+   Context context;
+
+   @BeforeMethod
+   public void initContext()
+   {
+      context = new RequestContext();
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testIsSessionScopePassivating()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testIsConversationScopePassivating()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testIsApplicationScopeNonPassivating()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testIsRequestScopePassivating()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testEJBWebBeanCanDefinePassivatingScope()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleWebBeanWithNonSerializableImplementationClassFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testProducerMethodDeclaringPassivatingScopeButReturningNonSerializableImplementationClassFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testStatefulEJBIsSerializedWhenPassivatedByEJBContainer()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testReferencesToWebBeansAreSerializable()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testDependentEJBsAreSerializable()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoProducerMethodParameterWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "contexts", "passivation" }) @SpecAssertion(section = "8.4")
+   public void testJMSEndpointProxyIsSerializable()
+   {
+      assert false;
+   }
+}

Modified: ri/trunk/webbeans-ri/testng.xml
===================================================================
--- ri/trunk/webbeans-ri/testng.xml	2008-10-30 07:13:46 UTC (rev 209)
+++ ri/trunk/webbeans-ri/testng.xml	2008-10-30 08:02:51 UTC (rev 210)
@@ -23,6 +23,7 @@
             <exclude name="innerClass" />
             <exclude name="servlet" />
             <exclude name="clientProxy" />
+            <exclude name="passivation" />
          </run>
       </groups>
       <packages>




More information about the weld-commits mailing list