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<uvw...@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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to