This content has been marked as final.
Show 2 replies
-
1. Re: Accessing ActionHandlers at runtime
kukeltje Apr 27, 2009 2:17 PM (in response to jamesrender)why not configure 'mock actionhandlers'?
-
2. Re: Accessing ActionHandlers at runtime
jamesrender Apr 28, 2009 12:01 AM (in response to jamesrender)how would I add these mockhandlers at runtime?
I've managed to navigate to the actionhandler classname via the processdefinition->node->event->action->delegation, so I could change the name of the class that is triggered to a mock one.
However, I've been using jmock to avoid having to write mock classes in this way. It will be another class to maintain.
In addition will replacing whole actionhandlers with mock code actually prove anything?
I want to mock out the external calls made within an actionhandler, ideally avoiding if (test.mode) {} type code
I was hoping that I'd be able to retrieve the ActionHandler object, call a method to pass it a jmock for a service call, then run the definition