JGiven icon indicating copy to clipboard operation
JGiven copied to clipboard

Use Spring bean in @JGivenConfiguration?

Open nikowitt opened this issue 7 years ago • 2 comments

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

nikowitt avatar May 31 '17 07:05 nikowitt

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

janschaefer avatar Jun 04 '17 09:06 janschaefer

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

nikowitt avatar Jun 07 '17 02:06 nikowitt