Spring injection in determining the pitch of a cucumber in case of a groovy script

It’s pretty convenient to implement step definitions using the Groovy Script approach, but in this case it’s unclear whether Spring injection can be used or not.

In the case of Groovy Script there is no class, just a set of closures, for example:

this.metaClass.mixin(Hooks) this.metaClass.mixin(EN) Given(~/^we do something$/) { -> } 

Can I use Spring with Groovy Script?

+7
spring groovy cucumber cucumber-jvm
source share

No one has answered this question yet.

See related questions:

3
Performing groovy cucumber functions against spring boot api
3
How to exchange variables in several cucumber step determination files using groovy
2
Spring Inject / AutoWire Groovy class created at runtime
one
How to debug Spring Injected Classes
one
Groovy-Spring Integration Issue
0
Spring cucumber integration tests will not share state between step definitions
0
Spring context not found using groovy classloader
0
Passing closure to spring bean using grain bean definitions
0
Configuring Java class properties in groovy script with spring
0
Spring Bean Injection in Groovy Script

All Articles