Answering my own question here, I made a simple file bean converter in my test packages that converts strings to file beans! Yeah for extensions and flexibility. Of course, you never want to put this type of converter into production as it would be dangerous to be able to turn any string parameter passed in into a file.....
On Jan 27, 2010, at 3:40 PM, Nick Stuart wrote: > Hey all, I'm trying to piece together some integration tests, and while > strictly speaking I don't need to test that file uploads work, I need a way > to pass files to my action beans during tests to make sure they do the right > thing with them. > > I am using the MockServletContext and MockRoundTrip which work great for my > 'normal' parameters, but not sure what to do with files. Can I just convert a > byte array of the file contents to a string and pass it that way? Anyone have > to deal with this before? > > Thanks for any pointers! > -Nick
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
