Forum Discussion
rupert_anderson
9 years agoValued Contributor
Hi,
Ok, can you say why it wouldn't be enough to call Groovy lib code from the startup script of the mock? This is run when the mock is deployed.
Can you say exactly how you would like the fictionality to work?
Sorry if I missed something,
Regards,
Rupert
Lavalyte
9 years agoOccasional Contributor
I am looking at implementing dozens of mock services, which will all access common initialised code/singletons.
It is clunky to have to have initialisation code that needs to be added to every mocked service rather than called once, seperate and before all the mock calls.
On top of that the code will need a flag to ensure it is not initiated more than once.