[webbeans-commits] Webbeans SVN: r474 - in ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb: invalid and 2 other directories.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Mon Dec 8 07:43:16 EST 2008


Author: nickarls
Date: 2008-12-08 07:43:15 -0500 (Mon, 08 Dec 2008)
New Revision: 474

Added:
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanDeclarationTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanRemoveMethodTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanSpecializationTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Armant.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/AustralianTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Beagle.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BorderTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BostonTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Boxer.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Bullmastiff.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/CairnsTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/ChowChow.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Dachshund.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/FoxTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GoldenRetriever.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreatDane.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreaterDane.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Greyhound.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Husky.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/IrishTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/JackRussellTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pekingese.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Poodle.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pug.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pumi.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Rottweiler.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/RussellTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Saluki.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Spitz.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Terrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/TibetanTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/YorkshireTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/BullTerrier.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Hound.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/HoundOfBaskerville.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Koirus.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Laika.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pitbull.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pomeranian.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Toller.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/WelshCorgie.java
Removed:
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/lifecycle/
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanDeclarationTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanRemoveMethodTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanSpecializationTest.java
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/
   ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/
Log:
remove obsoleted lifecycle test, restructured

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanDeclarationTest.java (from rev 473, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanDeclarationTest.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanDeclarationTest.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanDeclarationTest.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,368 @@
+package org.jboss.webbeans.test.ejb;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.DeploymentException;
+
+import org.jboss.webbeans.bean.EnterpriseBean;
+import org.jboss.webbeans.test.AbstractTest;
+import org.jboss.webbeans.test.SpecAssertion;
+import org.jboss.webbeans.test.SpecVersion;
+import org.jboss.webbeans.test.beans.Giraffe;
+import org.jboss.webbeans.test.beans.Leopard;
+import org.jboss.webbeans.test.ejb.invalid.Beagle;
+import org.jboss.webbeans.test.ejb.invalid.Boxer;
+import org.jboss.webbeans.test.ejb.invalid.Bullmastiff;
+import org.jboss.webbeans.test.ejb.invalid.Dachshund;
+import org.jboss.webbeans.test.ejb.invalid.GreatDane;
+import org.jboss.webbeans.test.ejb.invalid.Greyhound;
+import org.jboss.webbeans.test.ejb.invalid.Husky;
+import org.jboss.webbeans.test.ejb.invalid.IrishTerrier;
+import org.jboss.webbeans.test.ejb.invalid.Pekingese;
+import org.jboss.webbeans.test.ejb.invalid.Pug;
+import org.jboss.webbeans.test.ejb.valid.Laika;
+import org.jboss.webbeans.test.ejb.valid.Pitbull;
+import org.jboss.webbeans.util.BeanFactory;
+import org.testng.annotations.Test;
+
+ at SpecVersion("20081206")
+ at SuppressWarnings("unused")
+public class EnterpriseBeanDeclarationTest extends AbstractTest
+{
+
+   /**
+    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
+    * If an enterprise Web Bean specifies an illegal scope, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+   @Test(groups = { "enterpriseBeans" })
+   @SpecAssertion(section = "3.3")
+   public void testStatelessWithDependentScopeOK()
+   {
+      EnterpriseBean<Giraffe> giraffe = BeanFactory.createEnterpriseBean(Giraffe.class);
+   }
+
+   /**
+    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
+    * If an enterprise Web Bean specifies an illegal scope, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testStatelessWithRequestScopeFails()
+   {
+      EnterpriseBean<Beagle> beagle = BeanFactory.createEnterpriseBean(Beagle.class);
+   }
+
+   /**
+    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
+    * If an enterprise Web Bean specifies an illegal scope, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testStatelessWithConversationScopeFails()
+   {
+      EnterpriseBean<Boxer> boxer = BeanFactory.createEnterpriseBean(Boxer.class);
+   }
+
+   /**
+    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
+    * If an enterprise Web Bean specifies an illegal scope, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testStatelessWithSessionScopeFails()
+   {
+      EnterpriseBean<Bullmastiff> boxer = BeanFactory.createEnterpriseBean(Bullmastiff.class);
+   }
+
+   /**
+    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
+    * If an enterprise Web Bean specifies an illegal scope, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testStatelessWithApplicationScopeFails()
+   {
+      EnterpriseBean<Dachshund> dachshund = BeanFactory.createEnterpriseBean(Dachshund.class);
+   }
+
+   /**
+    * An EJB singleton bean must belong to either the @ApplicationScoped scope
+    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
+    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "enterpriseBeans" })
+   @SpecAssertion(section = "3.3")
+   public void testSingletonWithDependentScopeOK()
+   {
+      EnterpriseBean<GreatDane> greatDane = BeanFactory.createEnterpriseBean(GreatDane.class);
+   }
+
+   /**
+    * An EJB singleton bean must belong to either the @ApplicationScoped scope
+    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
+    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testSingletonWithRequestScopeFails()
+   {
+      EnterpriseBean<Greyhound> greyhound = BeanFactory.createEnterpriseBean(Greyhound.class);
+   }
+
+   /**
+    * An EJB singleton bean must belong to either the @ApplicationScoped scope
+    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
+    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testSingletonWithConversationScopeFails()
+   {
+      EnterpriseBean<Husky> husky = BeanFactory.createEnterpriseBean(Husky.class);
+   }
+
+   /**
+    * An EJB singleton bean must belong to either the @ApplicationScoped scope
+    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
+    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testSingletonWithSessionScopeFails()
+   {
+      EnterpriseBean<IrishTerrier> irishTerrier = BeanFactory.createEnterpriseBean(IrishTerrier.class);
+   }
+
+   /**
+    * An EJB singleton bean must belong to either the @ApplicationScoped scope
+    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
+    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "enterpriseBeans" })
+   @SpecAssertion(section = "3.3")
+   public void testSingletonWithApplicationScopeOK()
+   {
+      EnterpriseBean<Laika> laika = BeanFactory.createEnterpriseBean(Laika.class);
+   }
+
+   /**
+    * However, in any deployment, there may be at most one most specialized
+    * enabled enterprise Web Bean for any particular EJB enterprise bean.
+    * Therefore, for each distinct EJB name in a module, there is at most one
+    * Web Bean that may be called at runtime. If there is more than one most
+    * specialized enabled enterprise Web Bean for a particular EJB enterprise
+    * bean, a DeploymentException is thrown by the Web Bean manager at
+    * initialization time.
+    */
+   @Test(groups = { "enterpriseBeans", "stub" }, expectedExceptions = DeploymentException.class)
+   @SpecAssertion(section = "3.3")
+   public void testOnlyOneEnabledSpecializedEnterpriseBeanForImplmentation()
+   {
+      assert false;
+   }
+
+   /**
+    * If the implementation class of an enterprise Web Bean is annotated @Interceptor
+    * or @Decorator, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time.
+    */
+   @Test(expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testEnterpriseBeanInterceptorFails()
+   {
+      EnterpriseBean<Pug> pug = BeanFactory.createEnterpriseBean(Pug.class);
+   }
+
+   /**
+    * If the implementation class of an enterprise Web Bean is annotated @Interceptor
+    * or @Decorator, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time.
+    */
+   @Test(expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3")
+   public void testEnterpriseBeanDecoratorFails()
+   {
+      EnterpriseBean<Pekingese> pekingese = BeanFactory.createEnterpriseBean(Pekingese.class);
+   }
+
+   /**
+    * Only one Web Bean per implementation class may be defined using
+    * annotations.
+    */
+   @Test(expectedExceptions = DefinitionException.class, groups = { "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3")
+   public void testMultipleAnnotationDefinedEnterpriseBeansWithSameImplementationClassFails()
+   {
+      // TODO: testable?
+      assert false;
+   }
+
+   /**
+    * Note that multiple enterprise Web Beans may share the same implementation
+    * class. This occurs when Web Beans are defined using XML
+    */
+   @Test(groups = { "webbeansxml", "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3")
+   public void testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassOK()
+   {
+      assert false;
+   }
+
+   /**
+    * All session beans exposing an EJB 3.x client view and declared via an EJB
+    * component defining annotation on the EJB bean class are Web Beans, and
+    * thus no special declaration is required.
+    */
+   @Test(groups = { "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3.1")
+   public void testAnnotatedEnterpriseBean()
+   {
+      // TODO: dupe?
+      assert false;
+   }
+
+   /**
+    * Additional enterprise Web Beans for these EJBs may be defined using XML,
+    * by specifying the bean class in web-beans.xml.
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "stub" })
+   @SpecAssertion(section = "3.3.1")
+   public void testAnnotatedEnterpriseBeanComplementedWithXML()
+   {
+      // TODO dupe?
+      assert false;
+   }
+
+   /**
+    * All session beans exposing an EJB 3.x client view and declared in
+    * ejb-jar.xml are also Web Beans.
+    */
+   @Test(groups = { "enterpriseBeans", "ejbjarxml", "stub" })
+   @SpecAssertion(section = "3.3.1")
+   public void testEJBJARDefinedEnterpriseBean()
+   {
+      // TODO dupe?
+      assert false;
+   }
+
+   /**
+    * Additional enterprise Web Beans for these EJBs may be defined using XML,
+    * by specifying the bean class and EJB name in web-beans.xml
+    */
+   @Test(groups = { "enterpriseBeans", "ejbjarxml", "webbeansxml", "stub" })
+   @SpecAssertion(section = "3.3.1")
+   public void testEJBJARDefinedEnterpriseBeanComplementedWithXML()
+   {
+      // TODO dupe?
+      assert false;
+   }
+
+   /**
+    * The set of API types for an enterprise Web Bean contains all local
+    * interfaces of the bean that do not have wildcard type parameters or type
+    * variables and their superinterfaces
+    */
+   @Test(groups = { "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3.2")
+   public void testAPITypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
+   {
+      assert false;
+   }
+
+   /**
+    * If the EJB bean has a bean class local view and the bean class is not a
+    * parameterized type, the set of API types contains the bean class and all
+    * superclasses
+    */
+   @Test(groups = { "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3.2")
+   public void testEnterpriseBeanWithLocalViewAndParameterizedTypeIncludesBeanClassAndSuperclassesInAPITypes()
+   {
+      assert false;
+   }
+
+   /**
+    * In addition, java.lang.Object is an API type of every enterprise Web Bean.
+    */
+   @Test(groups = "enterpriseBeans")
+   @SpecAssertion(section = "3.3.2")
+   public void testObjectIsInAPITypes()
+   {
+      EnterpriseBean<Laika> laika = BeanFactory.createEnterpriseBean(Laika.class);
+      assert laika.getTypes().contains(Object.class);
+   }
+
+   /**
+    * Remote interfaces are not included in the set of API types.
+    */
+   @Test(groups = { "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3.2")
+   public void testRemoteInterfacesAreNotInAPITypes()
+   {
+      assert false;
+   }
+
+   /**
+    * Enterprise Web Beans may be declared in web-beans.xml using the bean class
+    * name (for EJBs defined using a component- defining annotation) or bean
+    * class and EJB name (for EJBs defined in ejb-jar.xml). The ejbName
+    * attribute declares the EJB name of an EJB defined in ejb-jar.xml
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "ejbjarxml", "stub" })
+   @SpecAssertion(section = "3.3")
+   public void testXMLFilesEJBNameUsage()
+   {
+      assert false;
+   }
+
+   /**
+    * Enterprise Web Beans may not be message-driven beans. If an enterprise Web
+    * Bean declared in XML is a message-driven bean, a DefinitionException is
+    * thrown by the Web Bean manager at initialization time.
+    */
+   @Test(expectedExceptions = DefinitionException.class, groups = "enterpriseBeans")
+   @SpecAssertion(section = "3.3")
+   public void testMessageDrivenBeansNotOK()
+   {
+      EnterpriseBean<Leopard> Leopard = BeanFactory.createEnterpriseBean(Leopard.class);
+   }
+
+   /**
+    * The default name for an enterprise Web Bean is the unqualified class name
+    * of the Web Bean implementation class, after converting the first character
+    * to lower case.
+    */
+   @Test(groups = "enterpriseBeans")
+   @SpecAssertion(section = "3.3.7")
+   public void testDefaultName()
+   {
+      EnterpriseBean<Pitbull> pitbull = BeanFactory.createEnterpriseBean(Pitbull.class);
+      assert pitbull.getName().equals("pitbull");
+   }
+   
+   /**
+    * An enterprise bean proxy implements all local interfaces of the EJB.
+    */
+   @Test(groups = { "specialization", "enterpriseBeans", "clientProxy", "stub" })
+   @SpecAssertion(section = "3.3.8")
+   public void testEnterpriseBeanProxyImplementsAllLocalInterfaces()
+   {
+      assert false;
+   }   
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanDeclarationTest.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanRemoveMethodTest.java (from rev 473, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanRemoveMethodTest.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanRemoveMethodTest.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanRemoveMethodTest.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,353 @@
+package org.jboss.webbeans.test.ejb;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.RequestScoped;
+import javax.webbeans.UnremovedException;
+
+import org.jboss.webbeans.bean.EnterpriseBean;
+import org.jboss.webbeans.contexts.RequestContext;
+import org.jboss.webbeans.test.AbstractTest;
+import org.jboss.webbeans.test.SpecAssertion;
+import org.jboss.webbeans.test.SpecVersion;
+import org.jboss.webbeans.test.ejb.invalid.Armant;
+import org.jboss.webbeans.test.ejb.invalid.GoldenRetriever;
+import org.jboss.webbeans.test.ejb.invalid.JackRussellTerrier;
+import org.jboss.webbeans.test.ejb.invalid.Poodle;
+import org.jboss.webbeans.test.ejb.invalid.Pumi;
+import org.jboss.webbeans.test.ejb.invalid.Rottweiler;
+import org.jboss.webbeans.test.ejb.invalid.RussellTerrier;
+import org.jboss.webbeans.test.ejb.invalid.Saluki;
+import org.jboss.webbeans.test.ejb.invalid.Spitz;
+import org.jboss.webbeans.test.ejb.valid.Koirus;
+import org.jboss.webbeans.test.ejb.valid.Toller;
+import org.jboss.webbeans.test.ejb.valid.WelshCorgie;
+import org.jboss.webbeans.util.BeanFactory;
+import org.testng.annotations.Test;
+
+ at SpecVersion("20081206")
+ at SuppressWarnings("unused")
+public class EnterpriseBeanRemoveMethodTest extends AbstractTest
+{
+   public static boolean visited = false;
+
+   /**
+    * EJB spec
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3.5")
+   public void testStatelessEnterpriseBeansWithRemoveMethodsFails()
+   {
+      EnterpriseBean<Armant> bean = BeanFactory.createEnterpriseBean(Armant.class);
+   }
+
+   /**
+    * When the Web Bean manager destroys an enterprise Web Bean instance that is
+    * an EJB stateful session bean, it calls the Web Bean remove method
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
+   @SpecAssertion(section = "3.3.5")
+   public void testStatefulEnterpriseBeanRemoveMethodCalledWhenDestroyedByManager()
+   {
+      EnterpriseBeanRemoveMethodTest.visited = false;
+      EnterpriseBean<Toller> bena = BeanFactory.createEnterpriseBean(Toller.class);
+      RequestContext context = (RequestContext) manager.getContext(RequestScoped.class);
+      Toller instance = context.get(bena, true);
+      context.destroy();
+      assert EnterpriseBeanRemoveMethodTest.visited;
+   }
+
+   /**
+    * The Web Bean remove method is a remove method of the EJB stateful session
+    * bean.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
+   @SpecAssertion(section = "3.3.5")
+   public void testWebBeanRemoveMethodIsEJBRemoveMethod()
+   {
+      assert false;
+   }
+
+   /**
+    * If an enterprise Web Bean that is a stateful session bean and does not
+    * have a Web Bean remove method declares any scope other than @Dependent, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+   // TODO: sentenced duplicated in previous paragraph in specs
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = "3.3.5")
+   public void testStatefulEnterpriseBeanWithoutRemoveMethodMustBeDependentScoped()
+   {
+      EnterpriseBean<Pumi> bean = BeanFactory.createEnterpriseBean(Pumi.class);
+   }
+
+   /**
+    * If an enterprise Web Bean that is a stateful session bean and does not
+    * have a Web Bean remove method declares any scope other than @Dependent, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time
+    */
+   // TODO: sentenced duplicated in previous paragraph in specs
+   @Test(groups = { "enterpriseBeans", "removeMethod" })
+   @SpecAssertion(section = "3.3.5")
+   public void testStatefulEnterpriseBeanWithoutRemoveMethodMustBeDependentScoped2()
+   {
+      EnterpriseBean<WelshCorgie> bean = BeanFactory.createEnterpriseBean(WelshCorgie.class);
+   }
+
+   /**
+    * If an instance of an enterprise Web Bean that is a stateful session bean
+    * and does not have a Web Bean remove method is not explicitly destroyed by
+    * the application before the Web Bean manager attempts to destroy the
+    * instance, an UnremovedException is thrown by the Web Bean manager
+    */
+   // TODO: sentenced duplicated in previous paragraph in specs
+   @Test(groups = { "enterpriseBeans", "removeMethod", "stub" }, expectedExceptions = UnremovedException.class)
+   @SpecAssertion(section = "3.3.5")
+   public void testStatefulEnterpriseBeanWithoutRemoveMethodMustBeRemovedByApplicationBeforeManager()
+   {
+      EnterpriseBean<Toller> bean = BeanFactory.createEnterpriseBean(Toller.class);
+      Toller instance = manager.getInstance(bean);
+      RequestContext context = (RequestContext) manager.getContext(RequestScoped.class);
+      context.destroy();
+   }
+
+   /**
+    * If the scope is @Dependent, the application may call any EJB remove method
+    * of an instance of the enterprise Web Bean, but then no parameters will be
+    * passed to the method by the Web Bean manager
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
+   @SpecAssertion(section = "3.3.5")
+   public void applicationMayCallRemoveMethodOnDependentScopedSessionEnterpriseBeansButNoParametersArePassed()
+   {
+      assert false;
+   }
+
+   /**
+    * If the application directly calls an EJB remove method of an instance of
+    * an enterprise Web Bean that is a stateful session bean and declares any
+    * scope other than @Dependent, an UnsupportedOperationException is thrown.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" }, expectedExceptions = UnsupportedOperationException.class)
+   @SpecAssertion(section = "3.3.5")
+   public void applicationCannotCallRemoveMethodOnNonDependentScopedSessionEnterpriseBean()
+   {
+      assert false;
+   }
+
+   /**
+    * If the application directly calls an EJB remove method of an instance of
+    * an enterprise Web Bean that is a stateful session bean and has scope
+    * 
+    * @Dependent, the Web Bean manager ignores the instance when instead of
+    *             destroying it
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
+   @SpecAssertion(section = "3.3.5")
+   public void applicationMayCallRemoveMethodOnDependentScopedSessionEnterpriseBeansButInstanceIsNotDestroyed()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
+   @SpecAssertion(section = "3.3.5")
+   public void testApplicationRemoveMethodCallRemovesInstanceFromContext()
+   {
+      EnterpriseBean<Toller> bean = BeanFactory.createEnterpriseBean(Toller.class);
+      RequestContext context = (RequestContext) manager.getContext(RequestScoped.class);
+      Toller instance = context.get(bean, true);
+      instance.bye();
+      instance = context.get(bean, false);
+      assert instance == null;
+   }
+
+   /**
+    * If an enterprise Web Bean defined using annotations does not explicitly
+    * declare a Web Bean remove method using @Destructor, and exactly one remove
+    * method that accepts no parameters exists, then that remove method is the
+    * Web Bean remove method.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" })
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testEnterpriseBeanWithoutDestructorUsesNoArgsRemoveAnnotatedMethodAsWebBeansRemoveMethod()
+   {
+      EnterpriseBean<Toller> bean = BeanFactory.createEnterpriseBean(Toller.class);
+      assert "bye".equals(bean.getRemoveMethod().getName());
+   }
+
+   /**
+    * Otherwise, if no remove method that accepts no parameters exists, or if
+    * multiple remove methods that accept no parameters exist, the enterprise
+    * Web Bean has no Web Bean remove method.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" })
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testEnterpriseBeanWithoutDestructorAndNoOrMultipleNoArgsRemoveMethodsHasNoWebBeansRemoveMethod()
+   {
+      EnterpriseBean<Koirus> bean = BeanFactory.createEnterpriseBean(Koirus.class);
+      assert bean.getRemoveMethod() == null;
+   }
+
+   /**
+    * If an enterprise Web Bean defined using annotations has more than one
+    * method annotated @Destructor, a DefinitionException is thrown by the Web
+    * Bean manager at initialization time.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testMultipleDestructorAnnotatedMethodsFails()
+   {
+      EnterpriseBean<Rottweiler> bean = BeanFactory.createEnterpriseBean(Rottweiler.class);
+   }
+
+   /**
+    * If an enterprise Web Bean defined using annotations has a method annotated
+    * 
+    * @Destructor, and that method is not an EJB remove method, a
+    *              DefinitionException is thrown by the Web Bean manager at
+    *              initialization time.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testDestructorAnnotatedMethodNotRemoveAnnotatedFails()
+   {
+      EnterpriseBean<RussellTerrier> bean = BeanFactory.createEnterpriseBean(RussellTerrier.class);
+   }
+
+   /**
+    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
+    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testRemoveMethodIsInitializerFails()
+   {
+      EnterpriseBean<Saluki> bean = BeanFactory.createEnterpriseBean(Saluki.class);
+   }
+
+   /**
+    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
+    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testRemoveMethodIsProducerFails()
+   {
+      EnterpriseBean<Spitz> bean = BeanFactory.createEnterpriseBean(Spitz.class);
+   }
+
+   /**
+    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
+    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testRemoveMethodWithDisposesParameterFails()
+   {
+      EnterpriseBean<GoldenRetriever> bean = BeanFactory.createEnterpriseBean(GoldenRetriever.class);
+   }
+
+   /**
+    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
+    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
+   @SpecAssertion(section = { "3.3.5.1" })
+   public void testRemoveMethodWithObservesParameterFails()
+   {
+      EnterpriseBean<JackRussellTerrier> bean = BeanFactory.createEnterpriseBean(JackRussellTerrier.class);
+   }
+
+   // TODO: where did this come from?
+   // @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions =
+   // DefinitionException.class)
+   // @SpecAssertion(section = { "3.3.5.1", "3.3.5.2" })
+   // public void testMultipleRemoveAnnotationsButNoDestructorFails()
+   // {
+   // EnterpriseBean<Poodle> bean =
+   // BeanFactory.createEnterpriseBean(Poodle.class);
+   // }
+
+   /**
+    * If an enterprise Web Bean defined using XML does not explicitly declare a
+    * Web Bean remove method using XML, and exactly one remove method that
+    * accepts no parameters exists, then that remove method is the Web Bean
+    * remove method
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
+   @SpecAssertion(section = { "3.3.5.1", "3.3.5.2" })
+   public void testXMLDefinedEnterpriseBeanWithoutDestructorUsesNoArgsRemoveAnnotatedMethodAsWebBeansRemoveMethod()
+   {
+      assert false;
+   }
+
+   /**
+    * Otherwise, if no remove method that accepts no parameters exists, or if
+    * multiple remove methods that accept no parameters exist, the enterprise
+    * Web Bean has no Web Bean remove method.
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
+   @SpecAssertion(section = { "3.3.5.1", "3.3.5.2" })
+   public void testXMLDefinedEnterpriseBeanWithoutDestructorAndNoOrMultipleNoArgsRemoveMethodsHasNoWebBeansRemoveMethod()
+   {
+      assert false;
+   }
+
+   /**
+    * If the implementation class of an enterprise Web Bean declared in XML does
+    * not have an EJB remove method with the name and parameter types declared
+    * in XML, a NonexistentMethodException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
+   @SpecAssertion(section = "3.3.5.2")
+   public void testXMLDefinedEnterpriseBeanWithoutMatchingRemoveMethodFails()
+   {
+      assert false;
+   }
+
+   /**
+    * If an enterprise Web Bean defined using XML declares more than one Web
+    * Bean remove method in XML, a DefinitionException is thrown by the Web Bean
+    * manager at initialization time.
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
+   @SpecAssertion(section = "3.3.5.2")
+   public void testXMLDefinedEnterpriseBeanWithMultipleRemoveMethodsFails()
+   {
+      assert false;
+   }
+
+   /**
+    * When a Web Bean remove method is declared in XML, the Web Bean manager
+    * ignores binding annotations applied to the Java method parameters
+    */
+   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
+   @SpecAssertion(section = "3.3.5.2")
+   public void testXMLDefinedEnterpriseBeanIgnoresBindingAnnotationOnParameters()
+   {
+      assert false;
+   }
+
+   /**
+    * If the Web Bean remove method has parameters, the Web Bean manager calls
+    * Manager.getInstanceByType() to determine a value for each parameter and
+    * calls the method with these parameter values.
+    */
+   @Test(groups = { "enterpriseBeans", "removeMethod", "stub" })
+   @SpecAssertion(section = "3.3.5.3")
+   public void testRemoveMethodParameterResolving()
+   {
+      assert false;
+   }
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanRemoveMethodTest.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanSpecializationTest.java (from rev 473, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanSpecializationTest.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanSpecializationTest.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanSpecializationTest.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,139 @@
+package org.jboss.webbeans.test.ejb;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.DeploymentException;
+
+import org.jboss.webbeans.bean.EnterpriseBean;
+import org.jboss.webbeans.test.AbstractTest;
+import org.jboss.webbeans.test.SpecAssertion;
+import org.jboss.webbeans.test.SpecVersion;
+import org.jboss.webbeans.test.ejb.invalid.GreaterDane;
+import org.jboss.webbeans.test.ejb.valid.Hound;
+import org.jboss.webbeans.test.ejb.valid.HoundOfBaskerville;
+import org.jboss.webbeans.util.BeanFactory;
+import org.testng.annotations.Test;
+
+ at SpecVersion("20081206")
+ at SuppressWarnings("unused")
+public class EnterpriseBeanSpecializationTest extends AbstractTest
+{
+   /**
+    * If an implementation class of an enterprise Web Bean X defined using
+    * annotations is annotated @Specializes, then the implementation class of X
+    * must directly extend the implementation class of another enterprise Web
+    * Bean Y defined using annotations. If the implementation class of X does
+    * not directly extend the implementation class of another enterprise Web
+    * Bean, a DefinitionException is thrown by the Web Bean manager at
+    * initialization time
+    */
+   @Test(groups = { "specialization", "enterpriseBeans", "stub" })
+   @SpecAssertion(section = "3.3.6")
+   public void testAnnotationDefinedSpecializingEnterpriseBeanMustDirectlyExtendAnotherAnnotationDefinedEnterpriseBean()
+   {
+      assert false;
+   }
+
+   /**
+    * X inherits all binding types of Y
+    */
+   @Test(groups = { "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testSpecializingBeanInheritsBindingTypes()
+   {
+      EnterpriseBean<Hound> hound = BeanFactory.createEnterpriseBean(Hound.class);
+      EnterpriseBean<HoundOfBaskerville> houndOfBaskerville = BeanFactory.createEnterpriseBean(HoundOfBaskerville.class);
+      assert compareBindingTypesOK(hound, houndOfBaskerville);
+   }
+
+   private boolean compareBindingTypesOK(EnterpriseBean<Hound> hound, EnterpriseBean<HoundOfBaskerville> houndOfBaskerville)
+   {
+      if (hound.getBindingTypes().size() != houndOfBaskerville.getBindingTypes().size())
+      {
+         return false;
+      }
+      if (!hound.getBindingTypes().containsAll(houndOfBaskerville.getBindingTypes()))
+      {
+         return false;
+      }
+      if (!houndOfBaskerville.getBindingTypes().containsAll(hound.getBindingTypes()))
+      {
+         return false;
+      }
+      return true;
+   }
+
+   /**
+    * if Y has a name, X has the same name as Y.
+    */
+   @Test(groups = { "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testSpecializingBeanInheritsNameIfAny()
+   {
+      EnterpriseBean<HoundOfBaskerville> houndOfBaskerville = BeanFactory.createEnterpriseBean(HoundOfBaskerville.class);
+      assert houndOfBaskerville.getName().equals("Pongo");
+   }
+
+   /**
+    * X must support all local interfaces supported by Y. Otherwise, a
+    * DefinitionException is thrown by the Web Bean manager at initialization
+    * time.
+    */
+   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testSpecializingNotSupportingLocalInterfacesOfSpecializedFails()
+   {
+      assert false;
+   }
+
+   /**
+    * if Y supports a bean-class local view, X must also support a bean-class
+    * local view. Otherwise, a DefinitionException is thrown by the Web Bean
+    * manager at initialization time.
+    */
+   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testSpecializingNotSupportingLocalViewOfSpecializedFails()
+   {
+      assert false;
+   }
+
+   /**
+    * We say that X directly specializes Y, and we can be certain that Y will
+    * never be instantiated or called by the Web Bean manager if X is enabled.
+    */
+   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void EnabledSpecializationOverridesSpecialized()
+   {
+      assert false;
+   }
+
+   @Test(groups = { "stub", "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testXMLDefinedSpecializationOnAnnotationDefinedBean()
+   {
+      assert false;
+   }
+
+   @Test(expectedExceptions = DeploymentException.class, groups = { "stub", "enterpriseBeans", "specialization" })
+   @SpecAssertion(section = "3.3")
+   public void testMultipleEnabledSpecializedEnterpriseBeanFails()
+   {
+      assert false;
+   }
+
+   @Test(expectedExceptions = DefinitionException.class, groups = { "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testAnnotationDefinedSpecializingEnterpriseBeanNotDirectlyExtendingAnnotationDefinedEnterpriseBeanFails()
+   {
+      EnterpriseBean<GreaterDane> greaterDane = BeanFactory.createEnterpriseBean(GreaterDane.class);
+   }
+
+   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
+   @SpecAssertion(section = "3.3.6")
+   public void testXMLDefinedSpecializingEnterpriseBeanNotImplementingAnnotationDefinedEnterpriseBeanFails()
+   {
+      assert false;
+   }
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/EnterpriseBeanSpecializationTest.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Armant.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Armant.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Armant.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Armant.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,13 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Destructor;
+
+ at Stateless
+public class Armant
+{
+   @Destructor
+   public void bye() {
+      
+   }
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/AustralianTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/AustralianTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/AustralianTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/AustralianTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Initializer;
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+ at Stateless
+public class AustralianTerrier
+{
+   @Initializer
+   public void observeInitialized(@Observes @Initialized Manager manager)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/AustralianTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Beagle.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Beagle.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Beagle.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Beagle.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.RequestScoped;
+
+ at Stateless
+ at RequestScoped
+public class Beagle
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BorderTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/BorderTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BorderTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BorderTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Observes;
+import javax.webbeans.Produces;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+ at Stateless
+public class BorderTerrier
+{
+   @Produces
+   public void observeInitialized(@Observes @Initialized Manager manager)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BorderTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BostonTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/BostonTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BostonTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BostonTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import java.util.List;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Observes;
+
+ at Stateless
+public class BostonTerrier
+{
+   public void observesBadEvent(@Observes List<String> someArray)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/BostonTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Boxer.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Boxer.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Boxer.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Boxer.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.ConversationScoped;
+
+ at Stateless
+ at ConversationScoped
+public class Boxer
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Bullmastiff.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Bullmastiff.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Bullmastiff.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Bullmastiff.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.SessionScoped;
+
+ at Stateless
+ at SessionScoped
+public class Bullmastiff
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/CairnsTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/CairnsTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/CairnsTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/CairnsTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,17 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Destructor;
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+ at Stateless
+public class CairnsTerrier
+{
+   @Destructor
+   public void observeInitialized(@Observes @Initialized Manager manager)
+   {
+   }
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/CairnsTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/ChowChow.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/ChowChow.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/ChowChow.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/ChowChow.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class ChowChow
+{
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/ChowChow.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Dachshund.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Dachshund.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Dachshund.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Dachshund.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.ApplicationScoped;
+
+ at Stateless
+ at ApplicationScoped
+public class Dachshund
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/FoxTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/FoxTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/FoxTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/FoxTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Disposes;
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+ at Stateless
+public class FoxTerrier
+{
+   public void observeInitialized(@Observes @Initialized Manager manager, @Disposes String badParam)
+   {
+   }
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/FoxTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GoldenRetriever.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/GoldenRetriever.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GoldenRetriever.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GoldenRetriever.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,18 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Destructor;
+import javax.webbeans.Disposes;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class GoldenRetriever
+{
+   @Remove @Destructor
+   public void bye(@Disposes Object something) {
+      
+   }
+   
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreatDane.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/GreatDane.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreatDane.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreatDane.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,7 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+
+public class GreatDane
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreaterDane.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/GreaterDane.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreaterDane.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/GreaterDane.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Specializes;
+
+ at Specializes
+ at Stateless
+public class GreaterDane extends GreatDane
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Greyhound.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Greyhound.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Greyhound.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Greyhound.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.webbeans.RequestScoped;
+
+import org.jboss.webbeans.test.annotations.Singleton;
+
+ at Singleton
+ at RequestScoped
+public class Greyhound
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Husky.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Husky.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Husky.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Husky.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.webbeans.ConversationScoped;
+
+import org.jboss.webbeans.test.annotations.Singleton;
+
+ at Singleton
+ at ConversationScoped
+public class Husky
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/IrishTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/IrishTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/IrishTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/IrishTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.webbeans.SessionScoped;
+
+import org.jboss.webbeans.test.annotations.Singleton;
+
+ at Singleton
+ at SessionScoped
+public class IrishTerrier
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/JackRussellTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/JackRussellTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/JackRussellTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/JackRussellTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,18 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Destructor;
+import javax.webbeans.Observes;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class JackRussellTerrier
+{
+   @Remove @Destructor
+   public void bye(@Observes Object something) {
+      
+   }
+   
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pekingese.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Pekingese.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pekingese.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pekingese.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Decorator;
+
+ at Stateless
+ at Decorator
+public class Pekingese
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Poodle.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Poodle.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Poodle.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Poodle.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class Poodle
+{
+   @Remove
+   public void bye() {
+      
+   }
+   
+   @Remove
+   public void byebye() {
+      
+   }
+   
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pug.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Pug.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pug.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pug.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Interceptor;
+
+ at Stateless
+ at Interceptor
+public class Pug
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pumi.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Pumi.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pumi.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Pumi.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class Pumi
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Rottweiler.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Rottweiler.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Rottweiler.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Rottweiler.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Destructor;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class Rottweiler
+{
+   @Destructor
+   public void bye() {
+      
+   }
+   
+   @Destructor
+   public void bye2() {
+      
+   }
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/RussellTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/RussellTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/RussellTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/RussellTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Destructor;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class RussellTerrier
+{
+   @Destructor
+   public void bye() {
+      
+   }
+   
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Saluki.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Saluki.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Saluki.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Saluki.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,17 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Initializer;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class Saluki
+{
+   @Remove @Initializer
+   public void bye() {
+      
+   }
+   
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Spitz.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Spitz.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Spitz.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Spitz.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,17 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Produces;
+import javax.webbeans.RequestScoped;
+
+ at Stateful
+ at RequestScoped
+public class Spitz
+{
+   @Remove @Produces
+   public void bye() {
+      
+   }
+   
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Terrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/Terrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Terrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Terrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Local;
+
+ at Local
+public interface Terrier
+{
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/Terrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/TibetanTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/TibetanTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/TibetanTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/TibetanTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+ at Stateless
+public class TibetanTerrier implements Terrier
+{
+   public void observeInitialized(@Observes @Initialized Manager manager)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/TibetanTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/YorkshireTerrier.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/invalid/YorkshireTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/YorkshireTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/YorkshireTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.test.ejb.invalid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+ at Stateless
+public class YorkshireTerrier
+{
+   public void observeInitialized(@Observes @Initialized Manager manager, @Observes Boxer anotherDog)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/invalid/YorkshireTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanDeclarationTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanDeclarationTest.java	2008-12-08 12:35:45 UTC (rev 473)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanDeclarationTest.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -1,368 +0,0 @@
-package org.jboss.webbeans.test.ejb.model;
-
-import javax.webbeans.DefinitionException;
-import javax.webbeans.DeploymentException;
-
-import org.jboss.webbeans.bean.EnterpriseBean;
-import org.jboss.webbeans.test.AbstractTest;
-import org.jboss.webbeans.test.SpecAssertion;
-import org.jboss.webbeans.test.SpecVersion;
-import org.jboss.webbeans.test.beans.Giraffe;
-import org.jboss.webbeans.test.beans.Leopard;
-import org.jboss.webbeans.test.ejb.model.invalid.Beagle;
-import org.jboss.webbeans.test.ejb.model.invalid.Boxer;
-import org.jboss.webbeans.test.ejb.model.invalid.Bullmastiff;
-import org.jboss.webbeans.test.ejb.model.invalid.Dachshund;
-import org.jboss.webbeans.test.ejb.model.invalid.GreatDane;
-import org.jboss.webbeans.test.ejb.model.invalid.Greyhound;
-import org.jboss.webbeans.test.ejb.model.invalid.Husky;
-import org.jboss.webbeans.test.ejb.model.invalid.IrishTerrier;
-import org.jboss.webbeans.test.ejb.model.invalid.Pekingese;
-import org.jboss.webbeans.test.ejb.model.invalid.Pug;
-import org.jboss.webbeans.test.ejb.model.valid.Laika;
-import org.jboss.webbeans.test.ejb.model.valid.Pitbull;
-import org.jboss.webbeans.util.BeanFactory;
-import org.testng.annotations.Test;
-
- at SpecVersion("20081206")
- at SuppressWarnings("unused")
-public class EnterpriseBeanDeclarationTest extends AbstractTest
-{
-
-   /**
-    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
-    * If an enterprise Web Bean specifies an illegal scope, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-   @Test(groups = { "enterpriseBeans" })
-   @SpecAssertion(section = "3.3")
-   public void testStatelessWithDependentScopeOK()
-   {
-      EnterpriseBean<Giraffe> giraffe = BeanFactory.createEnterpriseBean(Giraffe.class);
-   }
-
-   /**
-    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
-    * If an enterprise Web Bean specifies an illegal scope, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testStatelessWithRequestScopeFails()
-   {
-      EnterpriseBean<Beagle> beagle = BeanFactory.createEnterpriseBean(Beagle.class);
-   }
-
-   /**
-    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
-    * If an enterprise Web Bean specifies an illegal scope, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testStatelessWithConversationScopeFails()
-   {
-      EnterpriseBean<Boxer> boxer = BeanFactory.createEnterpriseBean(Boxer.class);
-   }
-
-   /**
-    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
-    * If an enterprise Web Bean specifies an illegal scope, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testStatelessWithSessionScopeFails()
-   {
-      EnterpriseBean<Bullmastiff> boxer = BeanFactory.createEnterpriseBean(Bullmastiff.class);
-   }
-
-   /**
-    * An EJB stateless session bean must belong to the @Dependent pseudo-scope.
-    * If an enterprise Web Bean specifies an illegal scope, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testStatelessWithApplicationScopeFails()
-   {
-      EnterpriseBean<Dachshund> dachshund = BeanFactory.createEnterpriseBean(Dachshund.class);
-   }
-
-   /**
-    * An EJB singleton bean must belong to either the @ApplicationScoped scope
-    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
-    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "enterpriseBeans" })
-   @SpecAssertion(section = "3.3")
-   public void testSingletonWithDependentScopeOK()
-   {
-      EnterpriseBean<GreatDane> greatDane = BeanFactory.createEnterpriseBean(GreatDane.class);
-   }
-
-   /**
-    * An EJB singleton bean must belong to either the @ApplicationScoped scope
-    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
-    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testSingletonWithRequestScopeFails()
-   {
-      EnterpriseBean<Greyhound> greyhound = BeanFactory.createEnterpriseBean(Greyhound.class);
-   }
-
-   /**
-    * An EJB singleton bean must belong to either the @ApplicationScoped scope
-    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
-    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testSingletonWithConversationScopeFails()
-   {
-      EnterpriseBean<Husky> husky = BeanFactory.createEnterpriseBean(Husky.class);
-   }
-
-   /**
-    * An EJB singleton bean must belong to either the @ApplicationScoped scope
-    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
-    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "enterpriseBeans" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testSingletonWithSessionScopeFails()
-   {
-      EnterpriseBean<IrishTerrier> irishTerrier = BeanFactory.createEnterpriseBean(IrishTerrier.class);
-   }
-
-   /**
-    * An EJB singleton bean must belong to either the @ApplicationScoped scope
-    * or to the @Dependent pseudo-scope. If an enterprise Web Bean specifies an
-    * illegal scope, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "enterpriseBeans" })
-   @SpecAssertion(section = "3.3")
-   public void testSingletonWithApplicationScopeOK()
-   {
-      EnterpriseBean<Laika> laika = BeanFactory.createEnterpriseBean(Laika.class);
-   }
-
-   /**
-    * However, in any deployment, there may be at most one most specialized
-    * enabled enterprise Web Bean for any particular EJB enterprise bean.
-    * Therefore, for each distinct EJB name in a module, there is at most one
-    * Web Bean that may be called at runtime. If there is more than one most
-    * specialized enabled enterprise Web Bean for a particular EJB enterprise
-    * bean, a DeploymentException is thrown by the Web Bean manager at
-    * initialization time.
-    */
-   @Test(groups = { "enterpriseBeans", "stub" }, expectedExceptions = DeploymentException.class)
-   @SpecAssertion(section = "3.3")
-   public void testOnlyOneEnabledSpecializedEnterpriseBeanForImplmentation()
-   {
-      assert false;
-   }
-
-   /**
-    * If the implementation class of an enterprise Web Bean is annotated @Interceptor
-    * or @Decorator, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time.
-    */
-   @Test(expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testEnterpriseBeanInterceptorFails()
-   {
-      EnterpriseBean<Pug> pug = BeanFactory.createEnterpriseBean(Pug.class);
-   }
-
-   /**
-    * If the implementation class of an enterprise Web Bean is annotated @Interceptor
-    * or @Decorator, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time.
-    */
-   @Test(expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3")
-   public void testEnterpriseBeanDecoratorFails()
-   {
-      EnterpriseBean<Pekingese> pekingese = BeanFactory.createEnterpriseBean(Pekingese.class);
-   }
-
-   /**
-    * Only one Web Bean per implementation class may be defined using
-    * annotations.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = { "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3")
-   public void testMultipleAnnotationDefinedEnterpriseBeansWithSameImplementationClassFails()
-   {
-      // TODO: testable?
-      assert false;
-   }
-
-   /**
-    * Note that multiple enterprise Web Beans may share the same implementation
-    * class. This occurs when Web Beans are defined using XML
-    */
-   @Test(groups = { "webbeansxml", "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3")
-   public void testMultipleXMLDefinedEnterpriseBeansWithSameImplementationClassOK()
-   {
-      assert false;
-   }
-
-   /**
-    * All session beans exposing an EJB 3.x client view and declared via an EJB
-    * component defining annotation on the EJB bean class are Web Beans, and
-    * thus no special declaration is required.
-    */
-   @Test(groups = { "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3.1")
-   public void testAnnotatedEnterpriseBean()
-   {
-      // TODO: dupe?
-      assert false;
-   }
-
-   /**
-    * Additional enterprise Web Beans for these EJBs may be defined using XML,
-    * by specifying the bean class in web-beans.xml.
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "stub" })
-   @SpecAssertion(section = "3.3.1")
-   public void testAnnotatedEnterpriseBeanComplementedWithXML()
-   {
-      // TODO dupe?
-      assert false;
-   }
-
-   /**
-    * All session beans exposing an EJB 3.x client view and declared in
-    * ejb-jar.xml are also Web Beans.
-    */
-   @Test(groups = { "enterpriseBeans", "ejbjarxml", "stub" })
-   @SpecAssertion(section = "3.3.1")
-   public void testEJBJARDefinedEnterpriseBean()
-   {
-      // TODO dupe?
-      assert false;
-   }
-
-   /**
-    * Additional enterprise Web Beans for these EJBs may be defined using XML,
-    * by specifying the bean class and EJB name in web-beans.xml
-    */
-   @Test(groups = { "enterpriseBeans", "ejbjarxml", "webbeansxml", "stub" })
-   @SpecAssertion(section = "3.3.1")
-   public void testEJBJARDefinedEnterpriseBeanComplementedWithXML()
-   {
-      // TODO dupe?
-      assert false;
-   }
-
-   /**
-    * The set of API types for an enterprise Web Bean contains all local
-    * interfaces of the bean that do not have wildcard type parameters or type
-    * variables and their superinterfaces
-    */
-   @Test(groups = { "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3.2")
-   public void testAPITypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces()
-   {
-      assert false;
-   }
-
-   /**
-    * If the EJB bean has a bean class local view and the bean class is not a
-    * parameterized type, the set of API types contains the bean class and all
-    * superclasses
-    */
-   @Test(groups = { "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3.2")
-   public void testEnterpriseBeanWithLocalViewAndParameterizedTypeIncludesBeanClassAndSuperclassesInAPITypes()
-   {
-      assert false;
-   }
-
-   /**
-    * In addition, java.lang.Object is an API type of every enterprise Web Bean.
-    */
-   @Test(groups = "enterpriseBeans")
-   @SpecAssertion(section = "3.3.2")
-   public void testObjectIsInAPITypes()
-   {
-      EnterpriseBean<Laika> laika = BeanFactory.createEnterpriseBean(Laika.class);
-      assert laika.getTypes().contains(Object.class);
-   }
-
-   /**
-    * Remote interfaces are not included in the set of API types.
-    */
-   @Test(groups = { "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3.2")
-   public void testRemoteInterfacesAreNotInAPITypes()
-   {
-      assert false;
-   }
-
-   /**
-    * Enterprise Web Beans may be declared in web-beans.xml using the bean class
-    * name (for EJBs defined using a component- defining annotation) or bean
-    * class and EJB name (for EJBs defined in ejb-jar.xml). The ejbName
-    * attribute declares the EJB name of an EJB defined in ejb-jar.xml
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "ejbjarxml", "stub" })
-   @SpecAssertion(section = "3.3")
-   public void testXMLFilesEJBNameUsage()
-   {
-      assert false;
-   }
-
-   /**
-    * Enterprise Web Beans may not be message-driven beans. If an enterprise Web
-    * Bean declared in XML is a message-driven bean, a DefinitionException is
-    * thrown by the Web Bean manager at initialization time.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = "enterpriseBeans")
-   @SpecAssertion(section = "3.3")
-   public void testMessageDrivenBeansNotOK()
-   {
-      EnterpriseBean<Leopard> Leopard = BeanFactory.createEnterpriseBean(Leopard.class);
-   }
-
-   /**
-    * The default name for an enterprise Web Bean is the unqualified class name
-    * of the Web Bean implementation class, after converting the first character
-    * to lower case.
-    */
-   @Test(groups = "enterpriseBeans")
-   @SpecAssertion(section = "3.3.7")
-   public void testDefaultName()
-   {
-      EnterpriseBean<Pitbull> pitbull = BeanFactory.createEnterpriseBean(Pitbull.class);
-      assert pitbull.getName().equals("pitbull");
-   }
-   
-   /**
-    * An enterprise bean proxy implements all local interfaces of the EJB.
-    */
-   @Test(groups = { "specialization", "enterpriseBeans", "clientProxy", "stub" })
-   @SpecAssertion(section = "3.3.8")
-   public void testEnterpriseBeanProxyImplementsAllLocalInterfaces()
-   {
-      assert false;
-   }   
-
-}

Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanRemoveMethodTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanRemoveMethodTest.java	2008-12-08 12:35:45 UTC (rev 473)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanRemoveMethodTest.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -1,353 +0,0 @@
-package org.jboss.webbeans.test.ejb.model;
-
-import javax.webbeans.DefinitionException;
-import javax.webbeans.RequestScoped;
-import javax.webbeans.UnremovedException;
-
-import org.jboss.webbeans.bean.EnterpriseBean;
-import org.jboss.webbeans.contexts.RequestContext;
-import org.jboss.webbeans.test.AbstractTest;
-import org.jboss.webbeans.test.SpecAssertion;
-import org.jboss.webbeans.test.SpecVersion;
-import org.jboss.webbeans.test.ejb.model.invalid.Armant;
-import org.jboss.webbeans.test.ejb.model.invalid.GoldenRetriever;
-import org.jboss.webbeans.test.ejb.model.invalid.JackRussellTerrier;
-import org.jboss.webbeans.test.ejb.model.invalid.Poodle;
-import org.jboss.webbeans.test.ejb.model.invalid.Pumi;
-import org.jboss.webbeans.test.ejb.model.invalid.Rottweiler;
-import org.jboss.webbeans.test.ejb.model.invalid.RussellTerrier;
-import org.jboss.webbeans.test.ejb.model.invalid.Saluki;
-import org.jboss.webbeans.test.ejb.model.invalid.Spitz;
-import org.jboss.webbeans.test.ejb.model.valid.Koirus;
-import org.jboss.webbeans.test.ejb.model.valid.Toller;
-import org.jboss.webbeans.test.ejb.model.valid.WelshCorgie;
-import org.jboss.webbeans.util.BeanFactory;
-import org.testng.annotations.Test;
-
- at SpecVersion("20081206")
- at SuppressWarnings("unused")
-public class EnterpriseBeanRemoveMethodTest extends AbstractTest
-{
-   public static boolean visited = false;
-
-   /**
-    * EJB spec
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3.5")
-   public void testStatelessEnterpriseBeansWithRemoveMethodsFails()
-   {
-      EnterpriseBean<Armant> bean = BeanFactory.createEnterpriseBean(Armant.class);
-   }
-
-   /**
-    * When the Web Bean manager destroys an enterprise Web Bean instance that is
-    * an EJB stateful session bean, it calls the Web Bean remove method
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
-   @SpecAssertion(section = "3.3.5")
-   public void testStatefulEnterpriseBeanRemoveMethodCalledWhenDestroyedByManager()
-   {
-      EnterpriseBeanRemoveMethodTest.visited = false;
-      EnterpriseBean<Toller> bena = BeanFactory.createEnterpriseBean(Toller.class);
-      RequestContext context = (RequestContext) manager.getContext(RequestScoped.class);
-      Toller instance = context.get(bena, true);
-      context.destroy();
-      assert EnterpriseBeanRemoveMethodTest.visited;
-   }
-
-   /**
-    * The Web Bean remove method is a remove method of the EJB stateful session
-    * bean.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
-   @SpecAssertion(section = "3.3.5")
-   public void testWebBeanRemoveMethodIsEJBRemoveMethod()
-   {
-      assert false;
-   }
-
-   /**
-    * If an enterprise Web Bean that is a stateful session bean and does not
-    * have a Web Bean remove method declares any scope other than @Dependent, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-   // TODO: sentenced duplicated in previous paragraph in specs
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = "3.3.5")
-   public void testStatefulEnterpriseBeanWithoutRemoveMethodMustBeDependentScoped()
-   {
-      EnterpriseBean<Pumi> bean = BeanFactory.createEnterpriseBean(Pumi.class);
-   }
-
-   /**
-    * If an enterprise Web Bean that is a stateful session bean and does not
-    * have a Web Bean remove method declares any scope other than @Dependent, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time
-    */
-   // TODO: sentenced duplicated in previous paragraph in specs
-   @Test(groups = { "enterpriseBeans", "removeMethod" })
-   @SpecAssertion(section = "3.3.5")
-   public void testStatefulEnterpriseBeanWithoutRemoveMethodMustBeDependentScoped2()
-   {
-      EnterpriseBean<WelshCorgie> bean = BeanFactory.createEnterpriseBean(WelshCorgie.class);
-   }
-
-   /**
-    * If an instance of an enterprise Web Bean that is a stateful session bean
-    * and does not have a Web Bean remove method is not explicitly destroyed by
-    * the application before the Web Bean manager attempts to destroy the
-    * instance, an UnremovedException is thrown by the Web Bean manager
-    */
-   // TODO: sentenced duplicated in previous paragraph in specs
-   @Test(groups = { "enterpriseBeans", "removeMethod", "stub" }, expectedExceptions = UnremovedException.class)
-   @SpecAssertion(section = "3.3.5")
-   public void testStatefulEnterpriseBeanWithoutRemoveMethodMustBeRemovedByApplicationBeforeManager()
-   {
-      EnterpriseBean<Toller> bean = BeanFactory.createEnterpriseBean(Toller.class);
-      Toller instance = manager.getInstance(bean);
-      RequestContext context = (RequestContext) manager.getContext(RequestScoped.class);
-      context.destroy();
-   }
-
-   /**
-    * If the scope is @Dependent, the application may call any EJB remove method
-    * of an instance of the enterprise Web Bean, but then no parameters will be
-    * passed to the method by the Web Bean manager
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
-   @SpecAssertion(section = "3.3.5")
-   public void applicationMayCallRemoveMethodOnDependentScopedSessionEnterpriseBeansButNoParametersArePassed()
-   {
-      assert false;
-   }
-
-   /**
-    * If the application directly calls an EJB remove method of an instance of
-    * an enterprise Web Bean that is a stateful session bean and declares any
-    * scope other than @Dependent, an UnsupportedOperationException is thrown.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" }, expectedExceptions = UnsupportedOperationException.class)
-   @SpecAssertion(section = "3.3.5")
-   public void applicationCannotCallRemoveMethodOnNonDependentScopedSessionEnterpriseBean()
-   {
-      assert false;
-   }
-
-   /**
-    * If the application directly calls an EJB remove method of an instance of
-    * an enterprise Web Bean that is a stateful session bean and has scope
-    * 
-    * @Dependent, the Web Bean manager ignores the instance when instead of
-    *             destroying it
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
-   @SpecAssertion(section = "3.3.5")
-   public void applicationMayCallRemoveMethodOnDependentScopedSessionEnterpriseBeansButInstanceIsNotDestroyed()
-   {
-      assert false;
-   }
-
-   @Test(groups = { "enterpriseBeans", "removeMethod", "lifecycle", "stub" })
-   @SpecAssertion(section = "3.3.5")
-   public void testApplicationRemoveMethodCallRemovesInstanceFromContext()
-   {
-      EnterpriseBean<Toller> bean = BeanFactory.createEnterpriseBean(Toller.class);
-      RequestContext context = (RequestContext) manager.getContext(RequestScoped.class);
-      Toller instance = context.get(bean, true);
-      instance.bye();
-      instance = context.get(bean, false);
-      assert instance == null;
-   }
-
-   /**
-    * If an enterprise Web Bean defined using annotations does not explicitly
-    * declare a Web Bean remove method using @Destructor, and exactly one remove
-    * method that accepts no parameters exists, then that remove method is the
-    * Web Bean remove method.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" })
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testEnterpriseBeanWithoutDestructorUsesNoArgsRemoveAnnotatedMethodAsWebBeansRemoveMethod()
-   {
-      EnterpriseBean<Toller> bean = BeanFactory.createEnterpriseBean(Toller.class);
-      assert "bye".equals(bean.getRemoveMethod().getName());
-   }
-
-   /**
-    * Otherwise, if no remove method that accepts no parameters exists, or if
-    * multiple remove methods that accept no parameters exist, the enterprise
-    * Web Bean has no Web Bean remove method.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" })
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testEnterpriseBeanWithoutDestructorAndNoOrMultipleNoArgsRemoveMethodsHasNoWebBeansRemoveMethod()
-   {
-      EnterpriseBean<Koirus> bean = BeanFactory.createEnterpriseBean(Koirus.class);
-      assert bean.getRemoveMethod() == null;
-   }
-
-   /**
-    * If an enterprise Web Bean defined using annotations has more than one
-    * method annotated @Destructor, a DefinitionException is thrown by the Web
-    * Bean manager at initialization time.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testMultipleDestructorAnnotatedMethodsFails()
-   {
-      EnterpriseBean<Rottweiler> bean = BeanFactory.createEnterpriseBean(Rottweiler.class);
-   }
-
-   /**
-    * If an enterprise Web Bean defined using annotations has a method annotated
-    * 
-    * @Destructor, and that method is not an EJB remove method, a
-    *              DefinitionException is thrown by the Web Bean manager at
-    *              initialization time.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testDestructorAnnotatedMethodNotRemoveAnnotatedFails()
-   {
-      EnterpriseBean<RussellTerrier> bean = BeanFactory.createEnterpriseBean(RussellTerrier.class);
-   }
-
-   /**
-    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
-    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testRemoveMethodIsInitializerFails()
-   {
-      EnterpriseBean<Saluki> bean = BeanFactory.createEnterpriseBean(Saluki.class);
-   }
-
-   /**
-    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
-    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testRemoveMethodIsProducerFails()
-   {
-      EnterpriseBean<Spitz> bean = BeanFactory.createEnterpriseBean(Spitz.class);
-   }
-
-   /**
-    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
-    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testRemoveMethodWithDisposesParameterFails()
-   {
-      EnterpriseBean<GoldenRetriever> bean = BeanFactory.createEnterpriseBean(GoldenRetriever.class);
-   }
-
-   /**
-    * If a Web Bean remove method is annotated @Initializer or @Produces, has a
-    * parameter annotated @Disposes, or has a parameter annotated @Observes, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions = DefinitionException.class)
-   @SpecAssertion(section = { "3.3.5.1" })
-   public void testRemoveMethodWithObservesParameterFails()
-   {
-      EnterpriseBean<JackRussellTerrier> bean = BeanFactory.createEnterpriseBean(JackRussellTerrier.class);
-   }
-
-   // TODO: where did this come from?
-   // @Test(groups = { "enterpriseBeans", "removeMethod" }, expectedExceptions =
-   // DefinitionException.class)
-   // @SpecAssertion(section = { "3.3.5.1", "3.3.5.2" })
-   // public void testMultipleRemoveAnnotationsButNoDestructorFails()
-   // {
-   // EnterpriseBean<Poodle> bean =
-   // BeanFactory.createEnterpriseBean(Poodle.class);
-   // }
-
-   /**
-    * If an enterprise Web Bean defined using XML does not explicitly declare a
-    * Web Bean remove method using XML, and exactly one remove method that
-    * accepts no parameters exists, then that remove method is the Web Bean
-    * remove method
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
-   @SpecAssertion(section = { "3.3.5.1", "3.3.5.2" })
-   public void testXMLDefinedEnterpriseBeanWithoutDestructorUsesNoArgsRemoveAnnotatedMethodAsWebBeansRemoveMethod()
-   {
-      assert false;
-   }
-
-   /**
-    * Otherwise, if no remove method that accepts no parameters exists, or if
-    * multiple remove methods that accept no parameters exist, the enterprise
-    * Web Bean has no Web Bean remove method.
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
-   @SpecAssertion(section = { "3.3.5.1", "3.3.5.2" })
-   public void testXMLDefinedEnterpriseBeanWithoutDestructorAndNoOrMultipleNoArgsRemoveMethodsHasNoWebBeansRemoveMethod()
-   {
-      assert false;
-   }
-
-   /**
-    * If the implementation class of an enterprise Web Bean declared in XML does
-    * not have an EJB remove method with the name and parameter types declared
-    * in XML, a NonexistentMethodException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
-   @SpecAssertion(section = "3.3.5.2")
-   public void testXMLDefinedEnterpriseBeanWithoutMatchingRemoveMethodFails()
-   {
-      assert false;
-   }
-
-   /**
-    * If an enterprise Web Bean defined using XML declares more than one Web
-    * Bean remove method in XML, a DefinitionException is thrown by the Web Bean
-    * manager at initialization time.
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
-   @SpecAssertion(section = "3.3.5.2")
-   public void testXMLDefinedEnterpriseBeanWithMultipleRemoveMethodsFails()
-   {
-      assert false;
-   }
-
-   /**
-    * When a Web Bean remove method is declared in XML, the Web Bean manager
-    * ignores binding annotations applied to the Java method parameters
-    */
-   @Test(groups = { "enterpriseBeans", "webbeansxml", "removeMethod", "stub" })
-   @SpecAssertion(section = "3.3.5.2")
-   public void testXMLDefinedEnterpriseBeanIgnoresBindingAnnotationOnParameters()
-   {
-      assert false;
-   }
-
-   /**
-    * If the Web Bean remove method has parameters, the Web Bean manager calls
-    * Manager.getInstanceByType() to determine a value for each parameter and
-    * calls the method with these parameter values.
-    */
-   @Test(groups = { "enterpriseBeans", "removeMethod", "stub" })
-   @SpecAssertion(section = "3.3.5.3")
-   public void testRemoveMethodParameterResolving()
-   {
-      assert false;
-   }
-
-}

Deleted: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanSpecializationTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanSpecializationTest.java	2008-12-08 12:35:45 UTC (rev 473)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/EnterpriseBeanSpecializationTest.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -1,139 +0,0 @@
-package org.jboss.webbeans.test.ejb.model;
-
-import javax.webbeans.DefinitionException;
-import javax.webbeans.DeploymentException;
-
-import org.jboss.webbeans.bean.EnterpriseBean;
-import org.jboss.webbeans.test.AbstractTest;
-import org.jboss.webbeans.test.SpecAssertion;
-import org.jboss.webbeans.test.SpecVersion;
-import org.jboss.webbeans.test.ejb.model.invalid.GreaterDane;
-import org.jboss.webbeans.test.ejb.model.valid.Hound;
-import org.jboss.webbeans.test.ejb.model.valid.HoundOfBaskerville;
-import org.jboss.webbeans.util.BeanFactory;
-import org.testng.annotations.Test;
-
- at SpecVersion("20081206")
- at SuppressWarnings("unused")
-public class EnterpriseBeanSpecializationTest extends AbstractTest
-{
-   /**
-    * If an implementation class of an enterprise Web Bean X defined using
-    * annotations is annotated @Specializes, then the implementation class of X
-    * must directly extend the implementation class of another enterprise Web
-    * Bean Y defined using annotations. If the implementation class of X does
-    * not directly extend the implementation class of another enterprise Web
-    * Bean, a DefinitionException is thrown by the Web Bean manager at
-    * initialization time
-    */
-   @Test(groups = { "specialization", "enterpriseBeans", "stub" })
-   @SpecAssertion(section = "3.3.6")
-   public void testAnnotationDefinedSpecializingEnterpriseBeanMustDirectlyExtendAnotherAnnotationDefinedEnterpriseBean()
-   {
-      assert false;
-   }
-
-   /**
-    * X inherits all binding types of Y
-    */
-   @Test(groups = { "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testSpecializingBeanInheritsBindingTypes()
-   {
-      EnterpriseBean<Hound> hound = BeanFactory.createEnterpriseBean(Hound.class);
-      EnterpriseBean<HoundOfBaskerville> houndOfBaskerville = BeanFactory.createEnterpriseBean(HoundOfBaskerville.class);
-      assert compareBindingTypesOK(hound, houndOfBaskerville);
-   }
-
-   private boolean compareBindingTypesOK(EnterpriseBean<Hound> hound, EnterpriseBean<HoundOfBaskerville> houndOfBaskerville)
-   {
-      if (hound.getBindingTypes().size() != houndOfBaskerville.getBindingTypes().size())
-      {
-         return false;
-      }
-      if (!hound.getBindingTypes().containsAll(houndOfBaskerville.getBindingTypes()))
-      {
-         return false;
-      }
-      if (!houndOfBaskerville.getBindingTypes().containsAll(hound.getBindingTypes()))
-      {
-         return false;
-      }
-      return true;
-   }
-
-   /**
-    * if Y has a name, X has the same name as Y.
-    */
-   @Test(groups = { "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testSpecializingBeanInheritsNameIfAny()
-   {
-      EnterpriseBean<HoundOfBaskerville> houndOfBaskerville = BeanFactory.createEnterpriseBean(HoundOfBaskerville.class);
-      assert houndOfBaskerville.getName().equals("Pongo");
-   }
-
-   /**
-    * X must support all local interfaces supported by Y. Otherwise, a
-    * DefinitionException is thrown by the Web Bean manager at initialization
-    * time.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testSpecializingNotSupportingLocalInterfacesOfSpecializedFails()
-   {
-      assert false;
-   }
-
-   /**
-    * if Y supports a bean-class local view, X must also support a bean-class
-    * local view. Otherwise, a DefinitionException is thrown by the Web Bean
-    * manager at initialization time.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testSpecializingNotSupportingLocalViewOfSpecializedFails()
-   {
-      assert false;
-   }
-
-   /**
-    * We say that X directly specializes Y, and we can be certain that Y will
-    * never be instantiated or called by the Web Bean manager if X is enabled.
-    */
-   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void EnabledSpecializationOverridesSpecialized()
-   {
-      assert false;
-   }
-
-   @Test(groups = { "stub", "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testXMLDefinedSpecializationOnAnnotationDefinedBean()
-   {
-      assert false;
-   }
-
-   @Test(expectedExceptions = DeploymentException.class, groups = { "stub", "enterpriseBeans", "specialization" })
-   @SpecAssertion(section = "3.3")
-   public void testMultipleEnabledSpecializedEnterpriseBeanFails()
-   {
-      assert false;
-   }
-
-   @Test(expectedExceptions = DefinitionException.class, groups = { "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testAnnotationDefinedSpecializingEnterpriseBeanNotDirectlyExtendingAnnotationDefinedEnterpriseBeanFails()
-   {
-      EnterpriseBean<GreaterDane> greaterDane = BeanFactory.createEnterpriseBean(GreaterDane.class);
-   }
-
-   @Test(expectedExceptions = DefinitionException.class, groups = { "stub", "specialization", "enterpriseBeans" })
-   @SpecAssertion(section = "3.3.6")
-   public void testXMLDefinedSpecializingEnterpriseBeanNotImplementingAnnotationDefinedEnterpriseBeanFails()
-   {
-      assert false;
-   }
-
-}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/BullTerrier.java (from rev 473, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/BullTerrier.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/BullTerrier.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/BullTerrier.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,15 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Observes;
+
+import org.jboss.webbeans.test.annotations.Role;
+import org.jboss.webbeans.test.annotations.Tame;
+
+ at Stateless
+public class BullTerrier
+{
+   public void observesBadEvent(@Observes @Role("Admin") @Tame String someEvent)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/BullTerrier.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Hound.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/Hound.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Hound.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Hound.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,18 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Named;
+
+import org.jboss.webbeans.test.annotations.Tame;
+
+ at Stateful
+ at Tame
+ at Named("Pongo")
+public class Hound
+{ 
+   @Remove
+   public void bye() {
+   }
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Hound.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/HoundOfBaskerville.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/HoundOfBaskerville.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/HoundOfBaskerville.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/HoundOfBaskerville.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Specializes;
+
+ at Specializes
+ at Stateful
+public class HoundOfBaskerville extends Hound
+{
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/HoundOfBaskerville.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Koirus.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/Koirus.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Koirus.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Koirus.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Dependent;
+
+ at Stateful
+ at Dependent
+public class Koirus
+{
+   @Remove
+   public void bye(Object param) {
+   }
+}
\ No newline at end of file


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Koirus.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Laika.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/Laika.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Laika.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Laika.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.webbeans.ApplicationScoped;
+
+import org.jboss.webbeans.test.annotations.Singleton;
+
+ at Singleton
+ at ApplicationScoped
+public class Laika
+{
+
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pitbull.java (from rev 473, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/Pitbull.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pitbull.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pitbull.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.ApplicationScoped;
+import javax.webbeans.Destructor;
+import javax.webbeans.Named;
+
+import org.jboss.webbeans.test.ejb.EnterpriseBeanRemoveMethodTest;
+
+ at Stateful
+ at ApplicationScoped
+ at Named
+public class Pitbull
+{
+
+   @Remove @Destructor
+   public void bye() {
+      EnterpriseBeanRemoveMethodTest.visited = true;
+   }
+}

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pomeranian.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/Pomeranian.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pomeranian.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pomeranian.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,23 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Named;
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+import org.jboss.webbeans.test.annotations.Tame;
+
+ at Stateful
+ at Tame
+ at Named("Teddy")
+public class Pomeranian
+{
+   public void observeInitialized(@Observes @Initialized Manager manager)
+   {
+   }
+
+   public static void staticallyObserveInitialized(@Observes @Initialized Manager manager)
+   {
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Pomeranian.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Toller.java (from rev 473, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/Toller.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Toller.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Toller.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,17 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.RequestScoped;
+
+import org.jboss.webbeans.test.ejb.EnterpriseBeanRemoveMethodTest;
+
+ at Stateful
+ at RequestScoped
+public class Toller
+{
+   @Remove
+   public void bye() {
+      EnterpriseBeanRemoveMethodTest.visited = true;
+   }
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/Toller.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Copied: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/WelshCorgie.java (from rev 465, ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/model/valid/WelshCorgie.java)
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/WelshCorgie.java	                        (rev 0)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/WelshCorgie.java	2008-12-08 12:43:15 UTC (rev 474)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.test.ejb.valid;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Dependent;
+
+ at Stateful
+ at Dependent
+public class WelshCorgie
+{
+
+}


Property changes on: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/ejb/valid/WelshCorgie.java
___________________________________________________________________
Name: svn:mergeinfo
   + 




More information about the weld-commits mailing list