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
Replace signal materialization in TransactionAspectSupport with usingWhen
We now use Flux.usingWhen() instead materialize/dematerialize operators
to reuse Reactor's resource closure.
Until usingWhen() accepts a BiFunction to consume error signals,
we need to map error signals outside of usingWhen which requires
re-wrapping of the ReactiveTransaction object.
Also, reuse the current TransactionContext to leave Transaction
creation/propagation entirely to ReactiveTransactionManager instead
of creating new TransactionContexts.
Copy file name to clipboardExpand all lines: spring-tx/src/test/java/org/springframework/transaction/interceptor/AbstractReactiveTransactionAspectTests.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@
33
33
34
34
importstaticorg.assertj.core.api.Assertions.*;
35
35
importstaticorg.assertj.core.api.Fail.fail;
36
+
importstaticorg.junit.Assert.*;
36
37
importstaticorg.mockito.Mockito.*;
37
38
38
39
/**
@@ -321,6 +322,7 @@ public void cannotCommitTransaction() throws Exception {
0 commit comments