[jboss-cvs] JBossAS SVN: r63383 - in trunk/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
Thu Jun 7 05:04:01 EDT 2007
Author: wolfc
Date: 2007-06-07 05:04:01 -0400 (Thu, 07 Jun 2007)
New Revision: 63383
Added:
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/
trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java
Modified:
trunk/ejb3/build-test.xml
Log:
EJBTHREE-986: unit test
Modified: trunk/ejb3/build-test.xml
===================================================================
--- trunk/ejb3/build-test.xml 2007-06-07 08:49:10 UTC (rev 63382)
+++ trunk/ejb3/build-test.xml 2007-06-07 09:04:01 UTC (rev 63383)
@@ -2021,6 +2021,13 @@
<build-simple-jar name="ejbthree985"/>
</target>
+ <target name="ejbthree986"
+ description="Builds a simple jar file."
+ depends="compile-classes">
+
+ <build-simple-jar name="ejbthree986"/>
+ </target>
+
<target name="ejbthree989"
description="Builds a simple jar file."
depends="compile-classes">
@@ -3346,7 +3353,8 @@
<target name="jars" depends="appclient, tck5sec, invalidtxmdb, descriptortypo, libdeployment, homeinterface, timestampentity, arjuna, mdbtransactions, unauthenticatedprincipal, clusteredservice, invoker, classloader,
circulardependency, jsp, timerdependency, servicedependency, servlet, stateless14, webservices, ear, ejbthree440,
ejbthree454, ejbthree653, ejbthree670, ejbthree712, ejbthree724, ejbthree751, ejbthree921, ejbthree936, ejbthree939,
- ejbthree953, ejbthree957, ejbthree959, ejbthree963, ejbthree967, ejbthree971, ejbthree973, ejbthree985, ejbthree989,
+ ejbthree953, ejbthree957, ejbthree959, ejbthree963, ejbthree967, ejbthree971, ejbthree973, ejbthree985, ejbthree986,
+ ejbthree989,
aspectdomain, ejbcontext, schema, mail, scopedclassloader, dependency,
securitydomain, enventry,
jms/managed, naming, bmt, jca/inflowmdb, pool, jms, security, reference21_30, factory, dd/web, txexceptions,
@@ -4214,6 +4222,9 @@
<param name="test" value="ejbthree985"/>
</antcall>
<antcall target="test" inheritRefs="true">
+ <param name="test" value="ejbthree986"/>
+ </antcall>
+ <antcall target="test" inheritRefs="true">
<param name="test" value="ejbthree989"/>
</antcall>
</target>
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java 2007-06-07 09:04:01 UTC (rev 63383)
@@ -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: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/Foo.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java 2007-06-07 09:04:01 UTC (rev 63383)
@@ -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: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/FooBean.java
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java
===================================================================
--- trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java (rev 0)
+++ trunk/ejb3/src/test/org/jboss/ejb3/test/ejbthree986/unit/StressFooTestCase.java 2007-06-07 09:04:01 UTC (rev 63383)
@@ -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: trunk/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