JGiven
JGiven copied to clipboard
Use Spring bean in @JGivenConfiguration?
Hi,
is it be possible to refer to a Spring bean in @JGivenConfiguration or to do this programmatically to inject such a bean?
Thanks in advance! Regards, Niko
Hi Niko,
no, there is no such mechanism yet. I also cannot think of a way to do this programmatically, sorry. But it might be a nice new feature for the jgiven-spring component. Could you describe your requirements? It should not be that difficult to implement that.
Best regards,
Jan
Good morning, the requirement is easy. Basically, I want to be able to provide different JGiven configuration per application to be able to provide application-specific default formatters. Our applications use an internal framework, so all application specific configurations extend from a default configuration. Best regards, Niko