You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ATM java 8 uses constructor to define steps. it is broken in several situation - all which needs some init on the glue, ie when you use any kind of "container" lib.
We hit this issue in cukespace and I defined:
publicinterfaceLambda {
voiddefine();
}
to workaround it
Is it possible to add it in LambdaGlueBase?
Only change is to call this method when creating instances for cucumber.
wdyt?
PS: also note the fact it uses JavaBackend so hardly makes hard to integrate with other framework - cukespace has its own backend and we now need to inherit from java one just for it, maybe introducing a LambdaBackend defining the needed methods could help here as well
As discussed in #1117 a LambdaGlueRegistry has been extracted in ab51ea2. This should make it easier for other backends to use lambda glue outside of the constructor.
How other backends do this is left up to those backends.
Hi
ATM java 8 uses constructor to define steps. it is broken in several situation - all which needs some init on the glue, ie when you use any kind of "container" lib.
We hit this issue in cukespace and I defined:
to workaround it
Is it possible to add it in LambdaGlueBase?
Only change is to call this method when creating instances for cucumber.
wdyt?
PS: also note the fact it uses JavaBackend so hardly makes hard to integrate with other framework - cukespace has its own backend and we now need to inherit from java one just for it, maybe introducing a LambdaBackend defining the needed methods could help here as well
FYI here is a test with Lambda: https://github.com/cukespace/cukespace/blob/a4f8e33cec2d34ac43ce004a9fa676082595b780/examples/src/test/java/cucumber/runtime/arquillian/java8/J8Test.java and here is the full diff cukespace/cukespace@a4f8e33
The text was updated successfully, but these errors were encountered: