Re: Issues testing file upload Servlet using SerlvetUnit
Wolfgang Fahl <[email protected]> Tue, 06 Oct 2009 10:12:13 +0200
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Dear Sriram,
you might want to have a try with version 1.7 and read the FAQ of this
mailing list. There you'll find a link to the subversion repository and
hints on how to find junit tests for a topic. I am pretty sure file
upload is covered. We are still looking for more people
to support the documentation of httpunit.
Yours
Wolfgang
Am 05.10.09 23:49, schrieb sriram srinivasan:
> 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® 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-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
>
>
> _______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® 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-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop