You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by sc...@apache.org on 2005/05/30 04:18:40 UTC

cvs commit: ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net FTPTest.java

scohen      2005/05/29 19:18:39

  Modified:    src/testcases/org/apache/tools/ant/taskdefs/optional/net
                        FTPTest.java
  Log:
  improve new test
  
  Revision  Changes    Path
  1.20      +2 -2      ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java
  
  Index: FTPTest.java
  ===================================================================
  RCS file: /home/cvs/ant/src/testcases/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- FTPTest.java	30 May 2005 00:40:20 -0000	1.19
  +++ FTPTest.java	30 May 2005 02:18:39 -0000	1.20
  @@ -829,7 +829,7 @@
       
       public static class randomFailureFTP extends myRetryableFTP {
           public randomFailureFTP() {
  -            super(new Random(30000).nextInt());
  +            super(new Random().nextInt(Short.MAX_VALUE));
           }
       }
       public void testGetWithSelectorRetryable1() {
  @@ -858,7 +858,7 @@
           }
       }
       public void testGetWithSelectorRetryableRandom() {
  -        getProject().addTaskDefinition("ftp", threeFailureFTP.class);
  +        getProject().addTaskDefinition("ftp", randomFailureFTP.class);
           try {
               getProject().setProperty("ftp.retries", "forever");
               getProject().executeTarget("ftp-get-with-selector-retryable");
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org