[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/performance/spring/rmi ...

Tom Elrod tom.elrod at jboss.com
Fri Aug 18 13:59:03 EDT 2006


  User: telrod  
  Date: 06/08/18 13:59:03

  Modified:    src/tests/org/jboss/test/remoting/performance/spring/rmi 
                        SpringRMIPerformanceTestCase.java
  Log:
  JBREM-562 - updated performance tests so can specify the bind host (previously hardcoded to localhost).
  
  Revision  Changes    Path
  1.2       +6 -0      JBossRemoting/src/tests/org/jboss/test/remoting/performance/spring/rmi/SpringRMIPerformanceTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SpringRMIPerformanceTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/performance/spring/rmi/SpringRMIPerformanceTestCase.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- SpringRMIPerformanceTestCase.java	13 Aug 2006 19:30:05 -0000	1.1
  +++ SpringRMIPerformanceTestCase.java	18 Aug 2006 17:59:03 -0000	1.2
  @@ -30,6 +30,7 @@
      public static final String RESULT_TIMEOUT = "jrunit.result_timeout";
      public static final String TEAR_DOWN_TIMEOUT = "jrunit.tear_down_timeout";
      public static final String RUN_TEST_TIMEOUT = "jrunit.run_test_timeout";
  +   public static final String REMOTING_HOST = "remoting.host";
   
      public void declareTestClasses()
      {
  @@ -134,6 +135,11 @@
         {
            vmArgs = "-D" + REMOTING_TRANSPORT + "=" + transport;
         }
  +      String host = System.getProperty(REMOTING_HOST);
  +      if(host != null && host.length() > 0)
  +      {
  +         vmArgs = "-D" + REMOTING_HOST + "=" + host;
  +      }
         String serialization = System.getProperty(REMOTING_SERIALIZATION);
         if(serialization != null && serialization.length() > 0)
         {
  
  
  



More information about the jboss-cvs-commits mailing list