-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
BeanInstantiationException with cucumber 7 and kotlin (lambda) #2413
Comments
The NPE isn't very pretty but since v7.0.0 you can't use lambda step definitions in a class annotated with Since v7 Cucumber invokes In light of #2279 I don't think this will be fixed. I would suggest using either PS: Thanks for the reproducer. Btw. You don't need |
I can work with |
The CucumberContextConfiguration does not work well with lambda's (cucumber-java8) hence I had to extract the configuration out of the stepdef as suggested in cucumber/cucumber-jvm#2413 Signed-off-by: Paul Williams <paul58914080@gmail.com>
The CucumberContextConfiguration does not work well with lambda's (cucumber-java8) hence I had to extract the configuration out of the stepdef as suggested in cucumber/cucumber-jvm#2413 Signed-off-by: Paul Williams <paul58914080@gmail.com>
The CucumberContextConfiguration does not work well with lambda's (cucumber-java8) hence I had to extract the configuration out of the stepdef as suggested in cucumber/cucumber-jvm#2413 Signed-off-by: Paul Williams <paul58914080@gmail.com>
The CucumberContextConfiguration does not work well with lambda's (cucumber-java8) hence I had to extract the configuration out of the stepdef as suggested in cucumber/cucumber-jvm#2413 Signed-off-by: Paul Williams <paul58914080@gmail.com>
Describe the bug
There seems to be an issue which was working earlier when I tried to adapt to the new release of cucumber 7 with spring boot test and kotlin using lambda's. I get the following exception
More logs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This was working fine earlier in <v7. The tests were being executed and the same can be observed in devs-from-matrix/hexagonal-spring-boot-kotlin#238 where the cucumber tests are executed fine with
v6.11.0
Your Environment
The text was updated successfully, but these errors were encountered: