[jboss-cvs] JBossAS SVN: r68151 - trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 11 16:48:16 EST 2007


Author: ALRubinger
Date: 2007-12-11 16:48:16 -0500 (Tue, 11 Dec 2007)
New Revision: 68151

Added:
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestBean.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestHome.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote1.java
   trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote2.java
Log:
[EJBTHREE-1155] Added Unit Tests

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestBean.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestBean.java	2007-12-11 21:48:16 UTC (rev 68151)
@@ -0,0 +1,38 @@
+package org.jboss.ejb3.test.ejbthree1155;
+
+import javax.ejb.RemoteHome;
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+
+import org.jboss.ejb3.annotation.RemoteHomeBinding;
+import org.jboss.logging.Logger;
+
+/**
+ * A Test SFSB that does not explicitly define any remote interfaces
+ * but allows them to be discovered via the Remote Home 
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateful
+ at RemoteHome(TestHome.class)
+ at RemoteHomeBinding(jndiBinding = TestHome.JNDI_NAME)
+public class TestBean
+{
+   // Class Members
+   private static final Logger logger = Logger.getLogger(TestBean.class);
+
+   // Required Implementations
+   public void test1()
+   {
+      logger.info("test1");
+   }
+
+   public void test2()
+   {
+      logger.info("test2");
+   }
+   
+   @Remove
+   public void remove(){}
+}


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

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestHome.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestHome.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestHome.java	2007-12-11 21:48:16 UTC (rev 68151)
@@ -0,0 +1,42 @@
+/*
+ * 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.ejbthree1155;
+
+import java.rmi.RemoteException;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBHome;
+
+/**
+ * Test 2.1 Home Interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestHome extends EJBHome
+{
+   String JNDI_NAME = "TestBean/home";
+
+   TestRemote1 createRemote1() throws RemoteException, CreateException;
+
+   TestRemote2 createRemote2() throws RemoteException, CreateException;
+}


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

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote1.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote1.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote1.java	2007-12-11 21:48:16 UTC (rev 68151)
@@ -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.ejbthree1155;
+
+import javax.ejb.EJBObject;
+
+/**
+ * A Test Remote Interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemote1 extends EJBObject
+{
+   void test1();
+   
+   void remove();
+}


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

Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote2.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote2.java	                        (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree1155/TestRemote2.java	2007-12-11 21:48:16 UTC (rev 68151)
@@ -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.ejbthree1155;
+
+import javax.ejb.EJBObject;
+
+/**
+ * A Second Test Remote Interface
+ * 
+ * @author <a href="mailto:andrew.rubinger at redhat.com">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemote2 extends EJBObject
+{
+   void test2();
+   
+   void remove();
+}


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




More information about the jboss-cvs-commits mailing list