[webbeans-commits] Webbeans SVN: r241 - ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Tue Nov 4 13:36:46 EST 2008
Author: pete.muir at jboss.org
Date: 2008-11-04 13:36:46 -0500 (Tue, 04 Nov 2008)
New Revision: 241
Added:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InitializerMethodTest.java
Log:
stubs for initializer method tests
Added: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InitializerMethodTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InitializerMethodTest.java (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InitializerMethodTest.java 2008-11-04 18:36:46 UTC (rev 241)
@@ -0,0 +1,129 @@
+package org.jboss.webbeans.test;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.NonexistentMethodException;
+
+import org.testng.annotations.Test;
+
+public class InitializerMethodTest
+{
+
+ @Test(expectedExceptions=DefinitionException.class, groups="initializerMethod") @SpecAssertion(section="3.7")
+ public void testStaticInitializerMethodNotAllowed()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "servlet"}) @SpecAssertion(section="3.7")
+ public void testInitializerMethodCalledOnServlet()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "ejb3"}) @SpecAssertion(section="3.7")
+ public void testInitializerMethodCalledOnEJBSessionBean()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "ejb3"}) @SpecAssertion(section="3.7")
+ public void testInitializerMethodCalledOnEJBMDB()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "ejb3", "singletons"}) @SpecAssertion(section="3.7")
+ public void testInitializerMethodCalledOnEJBSingleton()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "ejb3"}) @SpecAssertion(section="3.7")
+ public void testInitializerMethodNotABusinessMethod()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "interceptors"}) @SpecAssertion(section="3.7")
+ public void testMethodInterceptorNotCalledOnInitializerMethod()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod"}) @SpecAssertion(section="3.7")
+ public void testMultipleInitializerMethodsAreCalled()
+ {
+ assert false;
+ }
+
+ @Test(groups="initializerMethod", expectedExceptions=DefinitionException.class) @SpecAssertion(section="3.7.1")
+ public void testInitializerMethodAnnotatedProduces()
+ {
+ assert false;
+ }
+
+ @Test(groups="initializerMethod", expectedExceptions=DefinitionException.class) @SpecAssertion(section="3.7.1")
+ public void testInitializerMethodAnnotatedDestructor()
+ {
+ assert false;
+ }
+
+ @Test(groups="initializerMethod", expectedExceptions=DefinitionException.class) @SpecAssertion(section="3.7.1")
+ public void testInitializerMethodHasParameterAnnotatedDisposes()
+ {
+ assert false;
+ }
+
+ @Test(groups="initializerMethod", expectedExceptions=DefinitionException.class) @SpecAssertion(section="3.7.1")
+ public void testInitializerMethodHasParameterAnnotatedObserves()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "webbeansxml"}) @SpecAssertion(section="3.7.2")
+ public void testInitializerMethodDeclaredInXml()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "webbeansxml"}) @SpecAssertion(section="3.7.2")
+ public void testInitializerMethodDeclaredInXmlIgnoresBindingAnnotationsInJava()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "webbeansxml"}, expectedExceptions=NonexistentMethodException.class) @SpecAssertion(section="3.7.2")
+ public void testInitializerMethodDeclaredInXmlDoesNotExist()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod"}) @SpecAssertion(section="3.7.2")
+ public void testBeanHasAllInitializerMethodsDeclaredInJava()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod", "webbeansxml"}) @SpecAssertion(section="3.7.2")
+ public void testBeanHasAllInitializerMethodsDeclaredInJavaAndXml()
+ {
+ assert false;
+ }
+
+ @Test(groups={"initializerMethod"}) @SpecAssertion(section="3.7.3")
+ public void testInitializerMethodParametersAreInjected()
+ {
+ assert false;
+ }
+
+ /*
+
+ @Test(groups="initializerMethod") @SpecAssertion(section="3.7")
+ public void test
+ {
+ assert false;
+ }
+
+ */
+
+}
Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/InitializerMethodTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
More information about the weld-commits
mailing list