stevel      01/12/25 11:52:44

  Modified:    src/testcases/org/apache/tools/ant/taskdefs
                        LoadFileTest.java
  Log:
  stops the encoding test failing. We now test that the encoding param is 
supported, but there is nothing to test that the encoding actually works.
  
  Revision  Changes    Path
  1.2       +5 -3      
jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java
  
  Index: LoadFileTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/testcases/org/apache/tools/ant/taskdefs/LoadFileTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LoadFileTest.java 2001/12/25 06:14:20     1.1
  +++ LoadFileTest.java 2001/12/25 19:52:44     1.2
  @@ -137,8 +137,9 @@
       public void testLoadAFile() 
               throws BuildException {
           executeTarget("testLoadAFile");
  -        if(project.getProperty("testLoadAFile").indexOf("eh?")<0)
  +        if(project.getProperty("testLoadAFile").indexOf("eh?")<0) {
               fail("property is not all in the file");
  +        }
       }
   
   
  @@ -148,8 +149,9 @@
       public void testLoadAFileEnc() 
               throws BuildException {
           executeTarget("testLoadAFileEnc");
  -        if(project.getProperty("testLoadAFileEnc").indexOf("\u00a3")<0)
  -            fail("property is not all in the file");
  +        if(project.getProperty("testLoadAFileEnc")==null) {
  +            fail("file load failed");
  +        }
   
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to