[ 
http://www.stripesframework.org/jira/browse/STS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-609.
--------------------------


> Clean URL parameters with default values aren't bound when using MockRoundtrip
> ------------------------------------------------------------------------------
>
>                 Key: STS-609
>                 URL: http://www.stripesframework.org/jira/browse/STS-609
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5
>            Reporter: Levi Hoogenberg
>            Assignee: Ben Gunter
>            Priority: Critical
>             Fix For: Release 1.5.1, Release 1.6
>
>
> I have the following action bean:
>     @UrlBinding("/test/{i=1}")
>     public class TestActionBean extends BaseActionBean {
>         private int i;
>         public int getI() {return i;}
>         public void setI(int i) {this.i = i;}
>         @DefaultHandler
>         public Resolution doNothing() {return null;}
>     }
> When I try to test this action bean using a mock roundtrip:
>     MockRoundtrip roundtrip = new MockRoundtrip(getContext(), "/test");
>     roundtrip.setParameter("i", "2");
>     roundtrip.execute();
> setI is called, but with 1 as its value. In other words,
>     assertEquals(roundtrip.getActionBean(TestActionBean.class).getI(), 2);
> fails.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to