This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
HTTUnit
Posting Multipart Forms in HttpUnit
How to disable struts multipart parsing?
HttpUnit No Web Server howto newbie question...
Junit v&s Http Unit