Okay well the patch there would not apply cleanly (even to the revision it was
made from, which I thought was odd)
But I just added
public FileBean(String file) {
this(new File(file), "text/whocares", file);
}
And now trip.addParameter() works!?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Newman, John W
Sent: Wednesday, March 26, 2008 3:59 PM
To: Stripes Users List
Subject: Re: [Stripes-users] MockRoundtrip and <stripes:file ?
Looks like http://mc4j.org/jira/browse/STS-265 talks about this, any plans for
this one? The patch that Phillippe attached may address it, I will take a look.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Newman, John W
Sent: Wednesday, March 26, 2008 3:53 PM
To: Stripes Users List
Subject: [Stripes-users] MockRoundtrip and <stripes:file ?
Hi,
I've finally had a need to try out the file upload stuff. So far so good, but
is there a way to unit test this with mock round trip?
If I do
trip.addParameter("file", "c:\\whatever.txt");
The file bean is null, nothing gets bound. Any ideas?
Thanks!
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users