[
http://www.stripesframework.org/jira/browse/STS-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11739#action_11739
]
Karen commented on STS-706:
---------------------------
I have the same problem here.
Runtime the action bean works great. But when doing a MockRoundTrip on the
actionBean that has a URLBinding with parameters, it always binds
"{variable-name}" instead of the actual parameter value (even if no parameters
are added to the MockRoundTrip and it should not bind anything).
Unfortunately I did not find a work around either and am unable to unit test my
actionbeans now.
> MockRoundtrip doesn't work with clean url:s
> -------------------------------------------
>
> Key: STS-706
> URL: http://www.stripesframework.org/jira/browse/STS-706
> Project: Stripes
> Issue Type: Bug
> Components: ActionBean Dispatching
> Affects Versions: Release 1.5.1
> Reporter: Joakim Kemeny
> Attachments: TestActionBean.java, TestActionBeanTest.java
>
>
> I'm having some problems after upgrading from Stripes 1.5 to Stripes 1.5.1.
> I have a simple ActionBean with a property called path. I try to set this
> property using @UrlBinding("/test/{path}.html") but this only works half way.
> Calling this action using /test/some/path.html will call the correct action
> and set the path property to "some/path". This behavior is expected.
> Calling the same action in a test case using MockRoundtrip however will set
> the path to "{path}". This behavior is not expected.
> After debugging the Stripes code I traced the problem back to STS-616. It
> seems that the MergedParameterMap contains the following array ["{path}",
> "some/path"] when it's created from a MockRoundtrip but not during normal
> execution.
> I'll attach a test case for this and hope for a fix or a workaround.
> Meanwhile I'll have to go back to 1.5.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development