Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Spring bean in @JGivenConfiguration? #320

Open
nikowitt opened this issue May 31, 2017 · 2 comments
Open

Use Spring bean in @JGivenConfiguration? #320

nikowitt opened this issue May 31, 2017 · 2 comments

Comments

@nikowitt
Copy link
Contributor

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

@janschaefer
Copy link
Contributor

janschaefer commented Jun 4, 2017

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

@nikowitt
Copy link
Contributor Author

nikowitt commented Jun 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants