I have a method in Controller which takes the MultipartFile(Spring class )object as and stores it. I have to do an integration test.
So when the user logs in , it should be able to upload a file. I am using htmlUnit Webresponse class to send the request to controller @localhost.
how can i add the Multipartfile object to Webresponse or is there some other way to test it ?
Thanks
Harshit
I found the solution
The class is part of apache-httpclient jar