[jboss-cvs] JBossAS SVN: r65088 - in branches/Branch_4_2/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
Wed Sep 5 09:16:00 EDT 2007


Author: wolfc
Date: 2007-09-05 09:16:00 -0400 (Wed, 05 Sep 2007)
New Revision: 65088

Added:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java
Removed:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java
Modified:
   branches/Branch_4_2/ejb3/build-test.xml
Log:
EJBTHREE-986: merged unit test

Modified: branches/Branch_4_2/ejb3/build-test.xml
===================================================================
--- branches/Branch_4_2/ejb3/build-test.xml	2007-09-05 12:31:48 UTC (rev 65087)
+++ branches/Branch_4_2/ejb3/build-test.xml	2007-09-05 13:16:00 UTC (rev 65088)
@@ -1845,6 +1845,13 @@
       <build-simple-jar name="ejbthree963"/>
    </target>
    
+   <target name="ejbthree986"
+      description="Builds a simple jar files."
+      depends="compile-classes">
+      
+      <build-simple-jar name="ejbthree986"/>
+   </target>
+   
    <target name="ejbthree994"
       description="Builds a simple jar files."
       depends="compile-classes">
@@ -3358,7 +3365,7 @@
    <target name="jars" depends="removedislocal, statelesscreation, defaultremotebindings, localfromremote, clusteredjms, entityoptimisticlocking, concurrentnaming, propertyreplacement, persistenceunits, invalidtxmdb, descriptortypo, libdeployment, homeinterface, timestampentity, servicexmbean, arjuna, mdbtransactions, unauthenticatedprincipal, clusteredservice, invoker, classloader, 
       circulardependency, jsp, timerdependency, servicedependency, servlet, stateless14, webservices, ear, ejbthree440, 
       ejbthree454, ejbthree653, ejbthree670, ejbthree712, ejbthree724, ejbthree751, ejbthree832, ejbthree921,
-      ejbthree959, ejbthree963, ejbthree994, ejbthree1023, ejbthree1025,
+      ejbthree959, ejbthree963, ejbthree986, ejbthree994, ejbthree1023, ejbthree1025,
       jbas4489,
       aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency, jaxws,
       pkg, securitydomain, enventry, 
@@ -3922,6 +3929,9 @@
          <param name="test" value="ejbthree963"/>
       </antcall>
       <antcall target="test" inheritRefs="true">
+         <param name="test" value="ejbthree986"/>
+      </antcall>
+      <antcall target="test" inheritRefs="true">
          <param name="test" value="ejbthree994"/>
       </antcall>
       <antcall target="test" inheritRefs="true">

Copied: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986 (from rev 63383, trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986)

Deleted: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java	2007-06-07 09:04:01 UTC (rev 63383)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java	2007-09-05 13:16:00 UTC (rev 65088)
@@ -1,37 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.ejbthree986;
-
-import javax.ejb.Remote;
-
-/**
- * Comment
- *
- * @author <a href="mailto:yvan.borgne at lapeyre.fr">Yvan Borgne</a>
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
- at Remote
-public interface Foo
-{
-   void bar();
-}

Copied: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java (from rev 63383, trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java)
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java	2007-09-05 13:16:00 UTC (rev 65088)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.ejbthree986;
+
+import javax.ejb.Remote;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:yvan.borgne at lapeyre.fr">Yvan Borgne</a>
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Remote
+public interface Foo
+{
+   void bar();
+}


Property changes on: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Deleted: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java	2007-06-07 09:04:01 UTC (rev 63383)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java	2007-09-05 13:16:00 UTC (rev 65088)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.ejbthree986;
-
-import javax.ejb.Stateless;
-
-/**
- * Comment
- *
- * @author <a href="mailto:yvan.borgne at lapeyre.fr">Yvan Borgne</a>
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @version $Revision: $
- */
- at Stateless
-public class FooBean implements Foo
-{
-   public void bar()
-   {
-      // do nothing
-   }
-}

Copied: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java (from rev 63383, trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java)
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java	2007-09-05 13:16:00 UTC (rev 65088)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.ejbthree986;
+
+import javax.ejb.Stateless;
+
+/**
+ * Comment
+ *
+ * @author <a href="mailto:yvan.borgne at lapeyre.fr">Yvan Borgne</a>
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+ at Stateless
+public class FooBean implements Foo
+{
+   public void bar()
+   {
+      // do nothing
+   }
+}


Property changes on: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Copied: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit (from rev 63383, trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit)

Deleted: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java	2007-06-07 09:04:01 UTC (rev 63383)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java	2007-09-05 13:16:00 UTC (rev 65088)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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.ejbthree986.unit;
-
-import junit.framework.Test;
-
-import org.jboss.ejb3.test.ejbthree986.Foo;
-import org.jboss.test.JBossTestCase;
-
-/**
- * Stress test a stateless session bean.
- *
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @author <a href="mailto:yvan.borgne at lapeyre.fr">Yvan Borgne</a>
- * @version $Revision$
- */
-public class StressFooTestCase extends JBossTestCase
-{
-
-   public StressFooTestCase(String name)
-   {
-      super(name);
-   }
-
-   private Foo lookupBean() throws Exception
-   {
-      return (Foo) getInitialContext().lookup("FooBean/remote");
-   }
-   
-   public void test1() throws Exception
-   {
-      Foo bean = lookupBean();
-      for(int i = 0; i < 10000; i++)
-      {
-         if((i % 1000) == 0)
-            System.err.println("I'm alive @" + i);
-         bean.bar();
-      }
-   }
-   
-   public static Test suite() throws Exception
-   {
-      return getDeploySetup(StressFooTestCase.class, "ejbthree986.jar");
-   }
-}

Copied: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java (from rev 63383, trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java)
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java	                        (rev 0)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java	2007-09-05 13:16:00 UTC (rev 65088)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.ejbthree986.unit;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.ejbthree986.Foo;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * Stress test a stateless session bean.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @author <a href="mailto:yvan.borgne at lapeyre.fr">Yvan Borgne</a>
+ * @version $Revision$
+ */
+public class StressFooTestCase extends JBossTestCase
+{
+
+   public StressFooTestCase(String name)
+   {
+      super(name);
+   }
+
+   private Foo lookupBean() throws Exception
+   {
+      return (Foo) getInitialContext().lookup("FooBean/remote");
+   }
+   
+   public void test1() throws Exception
+   {
+      Foo bean = lookupBean();
+      for(int i = 0; i < 10000; i++)
+      {
+         if((i % 1000) == 0)
+            System.err.println("I'm alive @" + i);
+         bean.bar();
+      }
+   }
+   
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(StressFooTestCase.class, "ejbthree986.jar");
+   }
+}


Property changes on: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native




More information about the jboss-cvs-commits mailing list