[jboss-cvs] JBossAS SVN: r78896 - in branches/JBPAPP_4_2_0_GA_CP/ejb3: src/test/org/jboss/ejb3/test/ejbthree1504/unit and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 26 11:14:50 EDT 2008


Author: galder.zamarreno at jboss.com
Date: 2008-09-26 11:14:49 -0400 (Fri, 26 Sep 2008)
New Revision: 78896

Added:
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTestCase.java
Removed:
   branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTest.java
Modified:
   branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml
Log:
[JBPAPP-1215] Added standalone test that starts AS with previously problematic -Dcom.sun.management.jmxremote option and runs the corresponding test. The test has also been added to tests target so that it's run when the full testsuite runs.

Modified: branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml	2008-09-26 15:04:12 UTC (rev 78895)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/build-test.xml	2008-09-26 15:14:49 UTC (rev 78896)
@@ -105,6 +105,8 @@
 
    <property name="ejb3.jboss.jvmargs" value="-Xmx128m"/>
 	
+   <property name="ejbthree1504.jboss.jvmargs" value="-Dcom.sun.management.jmxremote"/>
+	
    <property name="endorsed.dirs" value="${ejb3.dist}/lib/endorsed/"/>
 
    <macrodef name="wait-on-host">
@@ -4128,6 +4130,7 @@
 	  <antcall target="statelesscreation-test"  inheritRefs="true"/>
 	  <antcall target="removedislocal-test"  inheritRefs="true"/>
 	  <antcall target="mdbsessionpoolclear-test"  inheritRefs="true"/>
+	   <antcall target="ejbthree1504-test"  inheritRefs="true"/>
    </target>
 
    <target name="no-start-jboss-tests" depends="init" description="Execute all tests">
@@ -4651,6 +4654,26 @@
       <wait-on-shutdown conf="mdbsessionpoolclear"/>
    </target>
 	
+   <target name="ejbthree1504-test" depends="init">
+      <create-config baseconf="all" newconf="ejbthree1504" jboss.dist="${ejb3.dist}">
+         <patternset>
+            <include name="conf/**"/>
+            <include name="deploy*/**"/>
+            <include name="lib/**"/>
+         </patternset>
+      </create-config>
+     
+      <start-jboss conf="ejbthree1504" host="${node0}" jboss.dist="${ejb3.dist}" jvmargs="${ejbthree1504.jboss.jvmargs}"/>
+      <wait-on-host/>
+      
+      <antcall target="test" inheritRefs="true">
+         <param name="test" value="ejbthree1504"/>
+      </antcall>
+      
+      <stop-jboss jboss.dist="${ejb3.dist}"/>
+      <wait-on-shutdown conf="ejbthree1504"/>
+   </target>
+	
    <target name="ssl-simple-test" depends="init">
      <create-config baseconf="all" newconf="ejb3-ssl" jboss.dist="${ejb3.dist}">
          <patternset>

Deleted: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTest.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTest.java	2008-09-26 15:04:12 UTC (rev 78895)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTest.java	2008-09-26 15:14:49 UTC (rev 78896)
@@ -1,55 +0,0 @@
-/*
- * 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.ejbthree1504.unit;
-
-import javax.naming.InitialContext;
-
-import junit.framework.Test;
-
-import org.jboss.ejb3.test.ejbthree1504.TimeTeller;
-import org.jboss.test.JBossTestCase;
-
-/**
- * TimeTellerTest. To run this test, make sure -Dcom.sun.management.jmxremote
- * has been added to AS/EAP startup VM options.
- * 
- * @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
- */
-public class TimeTellerTest extends JBossTestCase
-{
-   public TimeTellerTest(String name)
-   {
-      super(name);
-   }
-
-   public void testStandardCallViaLocalService() throws Exception
-   {
-      InitialContext ctx = new InitialContext();
-      TimeTeller timeTeller = (TimeTeller) ctx.lookup("TimeTellerBean/remote");
-      assertNotNull(timeTeller.whatsTheTime("boo"));
-   }
-   
-   public static Test suite() throws Exception
-   {
-      return getDeploySetup(TimeTellerTest.class, "ejbthree1504.jar");
-   }
-}

Copied: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTestCase.java (from rev 78886, branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTest.java)
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTestCase.java	                        (rev 0)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/test/org/jboss/ejb3/test/ejbthree1504/unit/TimeTellerTestCase.java	2008-09-26 15:14:49 UTC (rev 78896)
@@ -0,0 +1,55 @@
+/*
+ * 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.ejbthree1504.unit;
+
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.test.ejbthree1504.TimeTeller;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * TimeTellerTest. To run this test, make sure -Dcom.sun.management.jmxremote
+ * has been added to AS/EAP startup VM options.
+ * 
+ * @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
+ */
+public class TimeTellerTestCase extends JBossTestCase
+{
+   public TimeTellerTestCase(String name)
+   {
+      super(name);
+   }
+
+   public void testStandardCallViaLocalService() throws Exception
+   {
+      InitialContext ctx = new InitialContext();
+      TimeTeller timeTeller = (TimeTeller) ctx.lookup("TimeTellerBean/remote");
+      assertNotNull(timeTeller.whatsTheTime("boo"));
+   }
+   
+   public static Test suite() throws Exception
+   {
+      return getDeploySetup(TimeTellerTestCase.class, "ejbthree1504.jar");
+   }
+}




More information about the jboss-cvs-commits mailing list