sullis      2003/03/08 10:30:03

  Modified:    fileupload/src/test/org/apache/commons/fileupload
                        FileUploadTest.java
  Log:
  updated copyright year for 2003
  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.7       +18 -3     
jakarta-commons/fileupload/src/test/org/apache/commons/fileupload/FileUploadTest.java
  
  Index: FileUploadTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/fileupload/src/test/org/apache/commons/fileupload/FileUploadTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FileUploadTest.java       8 Mar 2003 05:02:21 -0000       1.6
  +++ FileUploadTest.java       8 Mar 2003 18:30:03 -0000       1.7
  @@ -3,7 +3,7 @@
   /* ====================================================================
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -115,9 +115,24 @@
           super(name);
       }
   
  -    public void testParseRequest()
  +    public void testParseRequest() throws FileUploadException
       {
  -     // todo - implement
  +     
  +     String[] fileNames = 
  +     { 
  +                     "filename1",
  +             "filename2"
  +     };
  +     
  +             FileUpload fu = null;
  +     
  +             fu = new FileUpload();
  +     
  +             HttpServletRequest req = 
HttpServletRequestFactory.createValidHttpServletRequest(fileNames);
  +     
  +             // todo java.util.List lst = fu.parseRequest(req);
  +             // todo assertNotNull(lst);
  +             
       }
   }
   
  
  
  

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

Reply via email to