Re: Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-23 Thread CyberCom
On Thursday 23 August 2012 14:33:14 Davis, Chad wrote: > > > class="org.easymock.EasyMock" > > factory-method="createStrictMock"> > > > > > > > > > > How do you control the correct injections for the various deployments? Do > you automate that with the build? Scripted? I use these

RE: Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-23 Thread Davis, Chad
> class="org.easymock.EasyMock" > factory-method="createStrictMock"> > > > How do you control the correct injections for the various deployments? Do you automate that with the build? Scripted? - To unsubscribe,

RE: Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-23 Thread Davis, Chad
> I do this all the time. Then I'm not crazy ;) > > Not sure what experiences you're looking for; if the data is _very_ complex it > may be easier to just embed a DB and load it up with DBUnit or something > like that. > It's not the data that's complex so much as the whole distributed syste

Re: Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-22 Thread Per Pascal Grube
Hi I use easymock to mock service in the action classes. In the spring context I add: Hope thats enough to give you a idea how it could work Regards, Pascal On Wednesday 22 August 2012 15:33:26 Davis, Chad wrote: > I would like to deploy my app to a UI testing / demo environme

Re: Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-22 Thread Dave Newton
I do this all the time. Not sure what experiences you're looking for; if the data is _very_ complex it may be easier to just embed a DB and load it up with DBUnit or something like that. I've also used builders to load up data structures for more-complex data, stuck that data into a map with an I

Injecting Static/Mock Resources into my Struts 2 Actions

2012-08-22 Thread Davis, Chad
I would like to deploy my app to a UI testing / demo environment. In this environment, the regular business logic objects would be replaced ( via DI ) with mock implementations of those resources. These mocks would return a static data set, thus giving a predictable behavior against which we c