Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Testing and the fly likes Problems with HttpUnit uploading a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Testing
Bookmark "Problems with HttpUnit uploading a file" Watch "Problems with HttpUnit uploading a file" New topic
Author

Problems with HttpUnit uploading a file

Nicole Lacoste
Ranch Hand

Joined: Oct 04, 2006
Posts: 30
Hi,

I am trying to test a servlet that expects a file to be uploaded. The request's content type is multipart/form-data. In my unit test I am using HttpUnit and here follows my code...



Everytime I try to run it I get the error that "the request because no multipart boundry was found".

Has anyone succeed in using HttpUnit to test file upload on a HttpServlet and can give me some advice?

Thanks,

Nicole
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems with HttpUnit uploading a file