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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 11 17:54:39 EST 2007


Author: ALRubinger
Date: 2007-12-11 17:54:39 -0500 (Tue, 11 Dec 2007)
New Revision: 68154

Added:
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestHome.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestRemote.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/unit/
Modified:
   trunk/ejb3/build-test.xml
Log:
[EJBTHREE-1156] Added Unit Tests

Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml	2007-12-11 21:55:27 UTC (rev 68153)
+++ trunk/ejb3/build-test.xml	2007-12-11 22:54:39 UTC (rev 68154)
@@ -2249,6 +2249,10 @@
    <target name="ejbthree1155" depends="compile-classes">
       <build-simple-jar name="ejbthree1155"/>
    </target>
+	
+   <target name="ejbthree1156" depends="compile-classes">
+      <build-simple-jar name="ejbthree1156"/>
+   </target>
 
    <target name="jbas4489"
       description="Builds a simple jar files."
@@ -3870,7 +3874,7 @@
       ejbthree1057, ejbthree1060,
       ejbthree1062,
       ejbthree1066, ejbthree1071, ejbthree1075, ejbthree1082, ejbthree1090, ejbthree1092, ejbthree1119, ejbthree1122, ejbthree1123, ejbthree1127,
-      ejbthree1146, ejbthree1154, ejbthree1155, jaxws, jbas4489,
+      ejbthree1146, ejbthree1154, ejbthree1155, ejbthree1156, jaxws, jbas4489,
       aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
       securitydomain, enventry, security5,
       jms/managed, naming, bmt, jca/inflowmdb, pool, jms, security, reference21_30, factory, dd/web, txexceptions,
@@ -4874,6 +4878,9 @@
          <param name="test" value="ejbthree1155"/>
       </antcall>
       <antcall target="test" inheritRefs="true">
+         <param name="test" value="ejbthree1156"/>
+      </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/ejbthree1156/TestBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestBean.java	2007-12-11 22:54:39 UTC (rev 68154)
@@ -0,0 +1,47 @@
+/*
+ * 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.ejbthree1156;
+
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateless;
+
+import org.jboss.ejb3.annotation.RemoteHomeBinding;
+
+/**
+ * A Test Stateless EJB with a Home that declares more than
+ * one "create<METHOD>" method, violating EJB 3.0 Core 
+ * Specification 4.6.8 Bullet 4
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateless
+ at RemoteHome(TestHome.class)
+ at RemoteHomeBinding(jndiBinding = TestHome.JNDI_NAME)
+public class TestBean
+{
+   // Required Implementations
+   public void invoke()
+   {
+
+   }
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestBean.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestHome.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestHome.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestHome.java	2007-12-11 22:54:39 UTC (rev 68154)
@@ -0,0 +1,36 @@
+/*
+ * 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.ejbthree1156;
+
+import java.rmi.RemoteException;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBHome;
+
+public interface TestHome extends EJBHome
+{
+   String JNDI_NAME = "TestBean/home";
+
+   TestRemote create() throws RemoteException, CreateException;
+
+   TestRemote create(String l) throws RemoteException, CreateException;
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestHome.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestRemote.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestRemote.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestRemote.java	2007-12-11 22:54:39 UTC (rev 68154)
@@ -0,0 +1,35 @@
+/*
+ * 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.ejbthree1156;
+
+import javax.ejb.EJBObject;
+
+/**
+ * A EJB 2.1 Test Remote Interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemote extends EJBObject
+{
+   void invoke();
+}


Property changes on: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1156/TestRemote.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain




More information about the jboss-cvs-commits mailing list