[jboss-cvs] JBossAS SVN: r72146 - in projects/ejb3/trunk/core: src/test/java/org/jboss/ejb3/test and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Apr 13 20:51:57 EDT 2008
Author: ALRubinger
Date: 2008-04-13 20:51:56 -0400 (Sun, 13 Apr 2008)
New Revision: 72146
Added:
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestBean.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemote.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteBusiness.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteHome.java
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/unit/
projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/unit/BindHomeAndBusinessTogetherTestCase.java
Modified:
projects/ejb3/trunk/core/build-test.xml
Log:
[EJBTHREE-1271] Added Test
Modified: projects/ejb3/trunk/core/build-test.xml
===================================================================
--- projects/ejb3/trunk/core/build-test.xml 2008-04-14 00:49:36 UTC (rev 72145)
+++ projects/ejb3/trunk/core/build-test.xml 2008-04-14 00:51:56 UTC (rev 72146)
@@ -2262,7 +2262,7 @@
<build-simple-jar name="ejbthree989"/>
</target>
-
+
<target name="ejbthree1020"
description="Builds a simple jar file."
>
@@ -2401,6 +2401,10 @@
<target name="ejbthree1222" >
<build-simple-jar name="ejbthree1222"/>
</target>
+
+ <target name="ejbthree1271">
+ <build-simple-jar name="ejbthree1271"/>
+ </target>
<target name="jbas4489"
description="Builds a simple jar files."
@@ -4174,7 +4178,7 @@
ejbthree1062,
ejbthree1066, ejbthree1071, ejbthree1075, ejbthree1082, ejbthree1090, ejbthree1092, ejbthree1119, ejbthree1122, ejbthree1123, ejbthree1127,
ejbthree1130,
- ejbthree1146, ejbthree1148, ejbthree1154, ejbthree1155, ejbthree1157, ejbthree1222, jaxws, jbas4489,
+ ejbthree1146, ejbthree1148, ejbthree1154, ejbthree1155, ejbthree1157, ejbthree1222, ejbthree1271, jaxws, jbas4489,
epcpropagation,
aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
securitydomain, enventry, security5,
@@ -5222,6 +5226,9 @@
<param name="test" value="ejbthree1222"/>
</antcall>
<antcall target="test" inheritRefs="true">
+ <param name="test" value="ejbthree1271"/>
+ </antcall>
+ <antcall target="test" inheritRefs="true">
<param name="test" value="statelesscreation"/>
</antcall>
<antcall target="test" inheritRefs="true">
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestBean.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestBean.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestBean.java 2008-04-14 00:51:56 UTC (rev 72146)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejbthree1271;
+
+import javax.ejb.Remote;
+import javax.ejb.RemoteHome;
+import javax.ejb.Stateful;
+
+import org.jboss.ejb3.annotation.RemoteBinding;
+import org.jboss.ejb3.annotation.RemoteHomeBinding;
+
+/**
+ * TestBean
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at Stateful
+ at Remote({TestRemote.class,TestRemoteBusiness.class})
+ at RemoteHome(TestRemoteHome.class)
+ at RemoteBinding(jndiBinding=TestRemoteBusiness.JNDI_NAME)
+ at RemoteHomeBinding(jndiBinding=TestRemoteHome.JNDI_NAME)
+public class TestBean implements TestRemoteBusiness
+{
+ public String test()
+ {
+ return TestRemoteBusiness.RETURN_VALUE;
+ }
+}
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemote.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemote.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemote.java 2008-04-14 00:51:56 UTC (rev 72146)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejbthree1271;
+
+import javax.ejb.EJBObject;
+
+/**
+ * TestRemote
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemote extends EJBObject, TestRemoteBusiness
+{
+
+}
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteBusiness.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteBusiness.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteBusiness.java 2008-04-14 00:51:56 UTC (rev 72146)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejbthree1271;
+
+/**
+ * TestRemoteBusiness
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemoteBusiness
+{
+ String JNDI_NAME = "ALRRemote";
+
+ String RETURN_VALUE = "test";
+
+ String test();
+}
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteHome.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteHome.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/TestRemoteHome.java 2008-04-14 00:51:56 UTC (rev 72146)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejbthree1271;
+
+import java.rmi.RemoteException;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBHome;
+
+/**
+ * TestRemoteHome
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface TestRemoteHome extends EJBHome
+{
+ String JNDI_NAME = TestRemoteBusiness.JNDI_NAME;
+
+ TestRemote create() throws CreateException, RemoteException;
+}
Added: projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/unit/BindHomeAndBusinessTogetherTestCase.java
===================================================================
--- projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/unit/BindHomeAndBusinessTogetherTestCase.java (rev 0)
+++ projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/test/ejbthree1271/unit/BindHomeAndBusinessTogetherTestCase.java 2008-04-14 00:51:56 UTC (rev 72146)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.ejbthree1271.unit;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.ejbthree1271.TestRemote;
+import org.jboss.ejb3.test.ejbthree1271.TestRemoteHome;
+import org.jboss.logging.Logger;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * BindHomeAndBusinessTogetherTestCase
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class BindHomeAndBusinessTogetherTestCase extends JBossTestCase
+{
+ private static final Logger log = Logger.getLogger(BindHomeAndBusinessTogetherTestCase.class);
+
+ public BindHomeAndBusinessTogetherTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testBindHomeAndBusinessTogether() throws Exception
+ {
+ TestRemoteHome home = (TestRemoteHome) this.getInitialContext().lookup(TestRemoteHome.JNDI_NAME);
+ TestRemote remote = home.create();
+ String returnValue = remote.test();
+ JBossTestCase.assertEquals(TestRemote.RETURN_VALUE, returnValue);
+ }
+
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(BindHomeAndBusinessTogetherTestCase.class, "ejbthree1271.jar");
+ }
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list