-
-
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
Spring transactions still not working #717
Conversation
Use the first class found with spring annotation, to create the TestContextManagers for all glue classes.
Also remove the @TxN annotation from see_message.feature, since it fails if transactions are used.
Test that if a step def class autowires another step def class that has not been used yet. Then it is the instance that was autowired that are returned to the backend, when asked for an instance.
Let the SpringFactory register the bean definitions of the glue classes in the bean factory of TestContextManager's context. Use this bean factoryto create the instances of the glue classes. Alse register the GlueCodeScope in bean factory of the TestContextManager's context.
Make sure that glue classes with different @ContextConfiguration/ @ContextHierarchy annotations are defined in different packages (since the SpringFactory will throw an exception if glue classes are added with @ContextConfiguration/@ContextHierarchy annotations that are not equal).
…rasmusson/cucumber-jvm into brasmusson-spring-stepdef-injection-error
cd examples/spring-txn && mvn clean test && mvn test
False alarm. Transactions seem to be working after all:
|
Hopefully they do ;-) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Ref #711 I have made a small change that demonstrates how transactions are still not working properly.
The 2nd time tests are run they will fail. To trigger this I made the database file based instead of in-memory so that records from the previous run are left in the database.