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
Since we have @Transactional working with R2DBC repositories in 1.0 M2 (as said here), I would like to ask if there is a way to make @Transactional working with JUnit (integration) tests (the same way we are able to do when using JDBC repositories). Is this currently possible? Will this even be possible? What is the right approach to achieve transactional tests ?
Currently, running a @Transactional@SpringBootTest gives me java.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test (the same problem as this guy has: http://disq.us/p/2425ot1).
The text was updated successfully, but these errors were encountered:
Thanks for bringing up this topic. This ticket rather belongs to Spring Framework. Can you file there a copy of this ticket?
Right now, we don't have the possibility to use @Transactional on test methods when testing reactive transactions. The only supported approach is moving the Publisher into a @Transactional service method. Clearly, this approach allows testing of transactional flows but it won't roll back.
Since we have
@Transactional
working with R2DBC repositories in 1.0 M2 (as said here), I would like to ask if there is a way to make@Transactional
working with JUnit (integration) tests (the same way we are able to do when using JDBC repositories). Is this currently possible? Will this even be possible? What is the right approach to achieve transactional tests ?Currently, running a
@Transactional
@SpringBootTest
gives mejava.lang.IllegalStateException: Failed to retrieve PlatformTransactionManager for @Transactional test
(the same problem as this guy has: http://disq.us/p/2425ot1).The text was updated successfully, but these errors were encountered: