Hi,

Can someone help me how to use Unit Test with stripes FileBean submit ?

I have:

//FormAction.class

 public FileBean file; public FileBean getFile() { return file; } public
void setFile(FileBean file) { this.file = file; }


//Test.class

MockServletContext ctx = getServletContext(); // context instance
MockRoundtrip trip = new MockRoundtrip(ctx, FormAction.class);

trip.addParameter("file", "D:/workspace/webproject/img.jpg"); // image exist

trip.execute("saveImage");


On saveImage event (FormAction.class) I have file null.

Thanks in advance
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to