Issues testing file upload Servlet using SerlvetUnit

sriram srinivasan <[email protected]> Mon, 5 Oct 2009 14:49:24 -0700
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
I have a servlet with a method called uploadFile that takes Http Request and
Response objects as parameters and returns a byte array of the uploaded file
to the caller...which in this case is the doPost method. I am trying to unit
test the uploadFile method with servletUnit but I am getting this
exception<http://gist.github.com/202486>(
http://gist.github.com/202486).
I am using version 1.6.2. (This is a maven project).

I googled and found the following links talking about problems that are some
what related
1. http://osdir.com/ml/web.httpunit.devel/2005-02/msg00031.html
2. http://osdir.com/ml/web.httpunit.devel/2005-11/msg00020.html

I also looked in the unit tests for the project for way to handle this.  I
searched the mail archives - that wasn't helpful. I went
through the tutorials, but don't see any examples on the homepage that
involve
file upload.

Here <http://gist.github.com/202485> (http://gist.github.com/202485) is the
code(unit-test) that I have.


Any help or guidance is greatly appreciated. Thank you very much for your
time in advance.

Regards,
-Sriram Srinivasan

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop