You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2004/04/09 13:31:39 UTC

cvs commit: jakarta-cactus/framework/src/test/share/org/apache/cactus/util TestIoUtil.java

vmassol     2004/04/09 04:31:39

  Modified:    framework/src/test/share/org/apache/cactus/util
                        TestIoUtil.java
  Log:
  Removed unwanted dependency on Ant (it was there by mistake)
  
  Revision  Changes    Path
  1.2       +4 -5      jakarta-cactus/framework/src/test/share/org/apache/cactus/util/TestIoUtil.java
  
  Index: TestIoUtil.java
  ===================================================================
  RCS file: /home/cvs/jakarta-cactus/framework/src/test/share/org/apache/cactus/util/TestIoUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestIoUtil.java	24 Mar 2004 17:06:57 -0000	1.1
  +++ TestIoUtil.java	9 Apr 2004 11:31:39 -0000	1.2
  @@ -19,10 +19,9 @@
    */
   package org.apache.cactus.util;
   
  +import java.io.ByteArrayInputStream;
   import java.io.IOException;
   
  -import org.apache.tools.ant.filters.StringInputStream;
  -
   import junit.framework.TestCase;
   
   /**
  @@ -42,7 +41,7 @@
       {
           String expected = 
               "<html><head/>\n<body>A GET request</body>\n</html>\n";
  -        StringInputStream in = new StringInputStream(expected);
  +        ByteArrayInputStream in = new ByteArrayInputStream(expected.getBytes());
   
           String result = IoUtil.getText(in);
   
  @@ -57,7 +56,7 @@
        */
       public void testGetTextEmpty() throws IOException
       {
  -        StringInputStream in = new StringInputStream("");
  +        ByteArrayInputStream in = new ByteArrayInputStream("".getBytes());
   
           String result = IoUtil.getText(in);
   
  
  
  

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