views:

550

answers:

0

I have an action class that expects a FormFile from a DynaActionForm. Typically in JMock, I'll just add request params to the struts mock, which will in turn populate the DynaActionForm.

Obviously, the set request param is for strings only. So I'm unsure how to get or set the mock to use a multi-part request such that I can add the FormFile object to it.

Can somebody point me to a working example?

Thanks!