sullis      2003/03/07 21:01:39

  Modified:    fileupload/src/test/org/apache/commons/fileupload
                        MultipartStreamTest.java
  Log:
  cleaned up the imports.
  added test code.
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.5       +5 -4      
jakarta-commons/fileupload/src/test/org/apache/commons/fileupload/MultipartStreamTest.java
  
  Index: MultipartStreamTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/fileupload/src/test/org/apache/commons/fileupload/MultipartStreamTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MultipartStreamTest.java  7 Mar 2003 23:13:14 -0000       1.4
  +++ MultipartStreamTest.java  8 Mar 2003 05:01:39 -0000       1.5
  @@ -54,9 +54,7 @@
    * <http://www.apache.org/>.
    */
   
  -import junit.framework.Test;
   import junit.framework.TestCase;
  -import org.apache.commons.fileupload.*;
   import java.io.*;
   
   /**
  @@ -71,10 +69,12 @@
   
       public void testDefaultConstructor() throws Exception {
        MultipartStream ms = new MultipartStream();
  +     // todo - ms.setBoundary(BOUNDARY_TEXT.getBytes());
       }
       
       public void testThreeParamConstructor() throws Exception {
  -     InputStream input = null;
  +             final String strData = "foobar";
  +             InputStream input = new ByteArrayInputStream(strData.getBytes());
        byte[] boundary = BOUNDARY_TEXT.getBytes();
        int iBufSize = boundary.length;
        MultipartStream ms = new MultipartStream(
  @@ -84,7 +84,8 @@
       }
   
        public void testTwoParamConstructor() throws Exception {
  -             InputStream input = null;
  +             final String strData = "foobar";
  +             InputStream input = new ByteArrayInputStream(strData.getBytes());
                byte[] boundary = BOUNDARY_TEXT.getBytes();
                MultipartStream ms = new MultipartStream(
                                input,
  
  
  

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

Reply via email to