[jboss-cvs] JBossAS SVN: r67914 - 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 4 19:19:04 EST 2007


Author: ALRubinger
Date: 2007-12-04 19:19:04 -0500 (Tue, 04 Dec 2007)
New Revision: 67914

Added:
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBeanBase.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestRemoteBusinessInterface.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/unit/
Modified:
   trunk/ejb3/build-test.xml
Log:
[EJBTHREE-1146] Added Unit Test (Currently passes, unexpected)

Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml	2007-12-04 23:57:39 UTC (rev 67913)
+++ trunk/ejb3/build-test.xml	2007-12-05 00:19:04 UTC (rev 67914)
@@ -2224,6 +2224,10 @@
    <target name="ejbthree1127" depends="compile-classes">
       <build-simple-jar name="ejbthree1127"/>
    </target>
+	
+   <target name="ejbthree1146" depends="compile-classes">
+      <build-simple-jar name="ejbthree1146"/>
+   </target>
 
    <target name="jbas4489"
       description="Builds a simple jar files."
@@ -3799,7 +3803,7 @@
       ejbthree1057, ejbthree1060,
       ejbthree1062,
       ejbthree1066, ejbthree1071, ejbthree1075, ejbthree1082, ejbthree1119, ejbthree1122, ejbthree1123, ejbthree1127,
-      jaxws,
+      ejbthree1146, jaxws,
       aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
       securitydomain, enventry, security5,
       jms/managed, naming, bmt, jca/inflowmdb, pool, jms, security, reference21_30, factory, dd/web, txexceptions,
@@ -4785,6 +4789,9 @@
          <param name="test" value="ejbthree1127"/>
       </antcall>
       <antcall target="test" inheritRefs="true">
+         <param name="test" value="ejbthree1146"/>
+      </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/ejbthree1146/TestBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBean.java	2007-12-05 00:19:04 UTC (rev 67914)
@@ -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.ejbthree1146;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+
+import org.jboss.ejb3.annotation.RemoteBinding;
+
+/**
+ * A Test Bean with one remote business interface, not 
+ * explicitly-specified
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateless
+ at Remote
+ at RemoteBinding(jndiBinding = TestRemoteBusinessInterface.JNDI_NAME)
+public class TestBean extends TestBeanBase implements TestRemoteBusinessInterface
+{
+}


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

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBeanBase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBeanBase.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestBeanBase.java	2007-12-05 00:19:04 UTC (rev 67914)
@@ -0,0 +1,45 @@
+/*
+ * 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.ejbthree1146;
+
+import org.jboss.logging.Logger;
+
+/**
+ * A Test Bean Base implementing the required business methods
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public abstract class TestBeanBase implements TestRemoteBusinessInterface
+{
+   // Class Members
+   private static final Logger log = Logger.getLogger(TestBeanBase.class);
+
+   // Required Implementations
+
+   public int test()
+   {
+      log.info("Called");
+      return TestRemoteBusinessInterface.RETURN_VALUE;
+   }
+
+}


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

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestRemoteBusinessInterface.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestRemoteBusinessInterface.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1146/TestRemoteBusinessInterface.java	2007-12-05 00:19:04 UTC (rev 67914)
@@ -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.ejbthree1146;
+
+/**
+ * A Test Remote Business Interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemoteBusinessInterface
+{
+   String JNDI_NAME = "TestBean/remote";
+   
+   int RETURN_VALUE = 1;
+   
+   int test();
+}


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




More information about the jboss-cvs-commits mailing list