You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by UV <uv...@googlemail.com> on 2011/06/17 16:19:07 UTC
Re: Problem with configured action method names and Testing Framework
- Action Testing with configured method names is broken in struts-2.2.3
Of course I configured a method with the same name and returning String?!?
But this is about using the action test framework of struts on actions
configured with a method name
in the XML instead of using the default execute()
(which I use as a workaround now)
So changing the names I use in the xml configuration should have nothing
to do with it, as the reflection code only seems to be able to find the
execute() method which is part of the action interface.
I have been deep in this with the debugger and I am actually pretty sure
by now
that this is a defect in the testing framework which has not been
addressed yet.
So for now: Action Testing with configured method names is NOT WORKING
in struts-2.2.3
On 17/06/2011 07:24, Lukasz Lenart wrote:
> 2011/6/17 UV<uv...@googlemail.com>:
>> When I try to test an action with a method="actionMethod" attribute
>> configured in a StrutsTestCase
>> the AnnotationValidationInterceptor fails in getActionMethod#75 cause it
>> cannot find the method
> Try to name your method actionMethod instead of getActionMethod and of
> return type String
>
>
> Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org