aspose file tools
The moose likes Testing and the fly likes Junit for  struts FormFile Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "Junit for  struts FormFile" Watch "Junit for  struts FormFile" New topic
Author

Junit for struts FormFile

kanna gupta
Greenhorn

Joined: Jun 09, 2008
Posts: 1
hi can anyone tell me how to write the junit test case for Struts FormFile.....
i am using jmock for this......
i am doing like this in my action class.....


FormFile uploadFile = uploadDataForm.getUploadFile();

now i need to setUploadFile() from my test case ...can anyone help me ...

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junit for struts FormFile
 
Similar Threads
struts test case problem
Get the value of FormFile from Database
Upload XML using formfile in struts 1.3
need help: writing Junit test cases
How to convert FormFile into BLOB object?