Re: [scxml-js] Question on unit testing external communications module

2010-08-02 Thread Rahul Akolkar
On Mon, Aug 2, 2010 at 12:10 PM, Jacob Beard wrote: > > > On 10-08-01 04:46 PM, Rahul Akolkar wrote: >> >> So we need to design a testing rig where we can deploy multiple >> Commons SCXML executor instances on a server as well as a number of >> scxml-js executor instances on the same or another se

Re: [scxml-js] Question on unit testing external communications module

2010-08-02 Thread Jacob Beard
On 10-08-01 04:46 PM, Rahul Akolkar wrote: So we need to design a testing rig where we can deploy multiple Commons SCXML executor instances on a server as well as a number of scxml-js executor instances on the same or another server with messages going back and forth. A servlet container is pro

Re: [scxml-js] Question on unit testing external communications module

2010-08-01 Thread Rahul Akolkar
On Sun, Aug 1, 2010 at 3:37 PM, Jacob Beard wrote: > Hi, > > I'm currently trying to determine the best way to test the external > communications module in scxml-js. Right now, dependency injection is used > to pass in an object, which is responsible for external communications, to > the Statechar

[scxml-js] Question on unit testing external communications module

2010-08-01 Thread Jacob Beard
Hi, I'm currently trying to determine the best way to test the external communications module in scxml-js. Right now, dependency injection is used to pass in an object, which is responsible for external communications, to the Statechart constructor function. This allows one to use a mock obje