vgritsenko    02/01/18 07:18:30

  Modified:    .        build.xml
               src/test/org/apache/cocoon/util IOUtilsTest.java
  Log:
  Make tests work
  
  Revision  Changes    Path
  1.144     +1 -0      xml-cocoon2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/build.xml,v
  retrieving revision 1.143
  retrieving revision 1.144
  diff -u -r1.143 -r1.144
  --- build.xml 17 Jan 2002 08:52:36 -0000      1.143
  +++ build.xml 18 Jan 2002 15:18:29 -0000      1.144
  @@ -1491,6 +1491,7 @@
           <pathelement location="${build.dest}" />
           <pathelement path="${java.class.path}" />
         </classpath>
  +      <classpath refid="classpath"/>
         <formatter type="plain" usefile="no" />
         <batchtest>
           <fileset dir="${build.test}">
  
  
  
  1.2       +7 -3      xml-cocoon2/src/test/org/apache/cocoon/util/IOUtilsTest.java
  
  Index: IOUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/test/org/apache/cocoon/util/IOUtilsTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- IOUtilsTest.java  3 Jan 2002 12:31:39 -0000       1.1
  +++ IOUtilsTest.java  18 Jan 2002 15:18:30 -0000      1.2
  @@ -7,13 +7,15 @@
    *****************************************************************************///
   package org.apache.cocoon.util;
   
  +import java.io.File;
  +
   import junit.framework.TestCase;
   
   /**
    * Test Cases for the IOUtils Class.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Stuart Roebuck</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2002/01/03 12:31:39 $
  + * @version CVS $Revision: 1.2 $ $Date: 2002/01/18 15:18:30 $
    */
   public class IOUtilsTest extends TestCase {
   
  @@ -28,7 +30,9 @@
           assertEquals("__", IOUtils.normalizedFilename("."));
           assertEquals("", IOUtils.normalizedFilename(""));
           assertEquals("_123", IOUtils.normalizedFilename("123"));
  -        assertEquals("http_/_/_", IOUtils.normalizedFilename("http://";));
  +        assertEquals("http_" + File.separatorChar + "_" + File.separatorChar + "_",
  +                     IOUtils.normalizedFilename("http://";));
  +        assertEquals("public_" + File.separatorChar + "final_xml",
  +                     IOUtils.normalizedFilename("public/final.xml"));
       }
  -
   }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to