axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject cvs commit: xml-axis-wsif/java/test/jms JmsTest.java
Date Thu, 26 Sep 2002 09:01:45 GMT
antelder    2002/09/26 02:01:45

  Modified:    java/test/jms JmsTest.java
  Log:
  Change the JMSTest to not hardcode the timeout value so it works for those who've change
the timeouts inthe wsif properties file.
  
  Revision  Changes    Path
  1.11      +4 -3      xml-axis-wsif/java/test/jms/JmsTest.java
  
  Index: JmsTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/jms/JmsTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- JmsTest.java	25 Sep 2002 12:38:43 -0000	1.10
  +++ JmsTest.java	26 Sep 2002 09:01:45 -0000	1.11
  @@ -70,6 +70,7 @@
   import org.apache.wsif.WSIFException;
   import org.apache.wsif.WSIFService;
   import org.apache.wsif.WSIFServiceFactory;
  +import org.apache.wsif.util.WSIFProperties;
   import util.AddressUtility;
   import util.TestUtilities;
   
  @@ -697,10 +698,10 @@
           System.out.println("first time was " + firstTime);
           System.out.println("second time was " + secondTime);
   
  -        // Default synchronous timeout is 10 seconds
  +        long timeout = WSIFProperties.getSyncTimeout();
           assertTrue(firstTime<secondTime);
  -        assertTrue((secondTime-firstTime)>10000);
  -        assertTrue((secondTime-firstTime)<20000);
  +        assertTrue((secondTime-firstTime)>timeout);
  +        assertTrue((secondTime-firstTime)<(timeout*2));
       }
   
   }
  
  
  

Mime
View raw message