ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional TraXLiaisonTest.java
Date Fri, 15 Feb 2002 17:08:18 GMT
bodewig     02/02/15 09:08:18

  Modified:    .        build.xml
               src/testcases/org/apache/tools/ant/taskdefs/optional
                        TraXLiaisonTest.java
  Log:
  Make JDK 1.4 happy by changing assert to assertTrue.
  
  TraxLiaisonTest accesses the protected TraXLiaison.getSystemId method
  and therefore has to be loaded via the same classloader as TraxLiaison.
  
  Revision  Changes    Path
  1.245     +2 -0      jakarta-ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/build.xml,v
  retrieving revision 1.244
  retrieving revision 1.245
  diff -u -r1.244 -r1.245
  --- build.xml	15 Feb 2002 16:51:10 -0000	1.244
  +++ build.xml	15 Feb 2002 17:08:18 -0000	1.245
  @@ -988,6 +988,8 @@
                      unless="tests.and.ant.share.classloader" />
             <exclude name="${optional.package}/sos/SOSTest.java"
                      unless="tests.and.ant.share.classloader" />
  +          <exclude name="${optional.package}/TraXLiaisonTest.java"
  +                   unless="tests.and.ant.share.classloader" />
   
             <!-- failure of this test case kills the current JVM
             so until the defect is actually fixed it is taken
  
  
  
  1.7       +2 -2      jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java
  
  Index: TraXLiaisonTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TraXLiaisonTest.java	7 Feb 2002 22:00:33 -0000	1.6
  +++ TraXLiaisonTest.java	15 Feb 2002 17:08:18 -0000	1.7
  @@ -120,8 +120,8 @@
               file = new File("/user/local/bin");
           }
           String systemid = ((TraXLiaison)liaison).getSystemId(file);
  -        assert("SystemIDs should start by file:///", systemid.startsWith("file:///"));
  -        assert("SystemIDs should not start with file:////", !systemid.startsWith("file:////"));
  +        assertTrue("SystemIDs should start by file:///", systemid.startsWith("file:///"));
  +        assertTrue("SystemIDs should not start with file:////", !systemid.startsWith("file:////"));
       }
   
   }
  
  
  

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


Mime
View raw message