[jboss-user] [JBoss jBPM] - Re: Accessing ActionHandlers at runtime

jamesrender do-not-reply at jboss.com
Tue Apr 28 00:01:42 EDT 2009


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




View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227121#4227121

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227121



More information about the jboss-user mailing list