[jboss-cvs] JBossAS SVN: r67301 - in trunk/ejb3: src/test/org/jboss/ejb3/test and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 20 12:17:05 EST 2007


Author: ALRubinger
Date: 2007-11-20 12:17:05 -0500 (Tue, 20 Nov 2007)
New Revision: 67301

Added:
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBaseClass.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBusinessInterface.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/unit/
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/unit/MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase.java
Modified:
   trunk/ejb3/build-test.xml
Log:
[EJBTHREE-1122] - Added Unit Tests

Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml	2007-11-20 15:48:38 UTC (rev 67300)
+++ trunk/ejb3/build-test.xml	2007-11-20 17:17:05 UTC (rev 67301)
@@ -2197,6 +2197,10 @@
    <target name="ejbthree1082" depends="compile-classes">
       <build-simple-jar name="ejbthree1082"/>
    </target>
+   
+   <target name="ejbthree1122" depends="compile-classes">
+      <build-simple-jar name="ejbthree1122"/>
+   </target>
 	
    <target name="jbas4489"
       description="Builds a simple jar files."
@@ -3714,7 +3718,7 @@
       ejbthree989, ejbthree1020, ejbthree1023, ejbthree1025, ejbthree1040,
       ejbthree1057, ejbthree1060,
       ejbthree1062,
-      ejbthree1066, ejbthree1071, ejbthree1075, ejbthree1082,
+      ejbthree1066, ejbthree1071, ejbthree1075, ejbthree1082, ejbthree1122,
       jaxws,
       aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
       securitydomain, enventry, security5,
@@ -4685,6 +4689,9 @@
          <param name="test" value="ejbthree1082"/>
       </antcall>
       <antcall target="test" inheritRefs="true">
+         <param name="test" value="ejbthree1122"/>
+      </antcall>
+      <antcall target="test" inheritRefs="true">
          <param name="test" value="statelesscreation"/>
       </antcall>
       <antcall target="test" inheritRefs="true">

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBaseClass.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBaseClass.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBaseClass.java	2007-11-20 17:17:05 UTC (rev 67301)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1122;
+
+/**
+ * Test Base, implementing @Remote business interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public class TestBaseClass implements TestBusinessInterface
+{
+
+   public void test()
+   {
+   }
+
+}

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBean.java	2007-11-20 17:17:05 UTC (rev 67301)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1122;
+
+import javax.ejb.Stateless;
+
+/**
+ * A Test EJB both directly implementing a remote business interface
+ * and extending from a base class that also implements a remote
+ * business interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateless
+public class TestBean extends TestBaseClass implements TestBusinessInterface
+{
+
+}

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBusinessInterface.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBusinessInterface.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/TestBusinessInterface.java	2007-11-20 17:17:05 UTC (rev 67301)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1122;
+
+import javax.ejb.Remote;
+
+import org.jboss.annotation.ejb.RemoteBinding;
+
+/**
+ * Test Remote Business Interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+ at Remote
+ at RemoteBinding(jndiBinding=TestBusinessInterface.JNDI_NAME)
+public interface TestBusinessInterface
+{
+   String JNDI_NAME = "TestBean/remote";
+   
+   void test();
+}

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/unit/MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/unit/MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1122/unit/MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase.java	2007-11-20 17:17:05 UTC (rev 67301)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.test.ejbthree1122.unit;
+
+import junit.framework.Test;
+
+import org.jboss.test.JBossTestCase;
+
+/**
+ * Tests to ensure that a bean with the same @Remote business interface
+ * defined multiple times (both explicitly and via inheritance) 
+ * deploys successfully
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public class MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase extends JBossTestCase
+{
+   // Constructor
+   public MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase(String name)
+   {
+      super(name);
+   }
+   
+   // Suite
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(MultipleDefinitionsOfSameBusinessInterfaceUnitTestCase.class, "ejbthree1122.jar");
+   }
+   
+   
+}




More information about the jboss-cvs-commits mailing list