File tree 1 file changed +2
-3
lines changed
src/test/java/org/springframework/data/r2dbc/connectionfactory
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 32
32
33
33
import org .junit .Before ;
34
34
import org .junit .Test ;
35
- import org .springframework .data .r2dbc .connectionfactory .R2dbcTransactionManager ;
36
- import org .springframework .data .r2dbc .connectionfactory .ConnectionFactoryUtils ;
35
+
37
36
import org .springframework .transaction .IllegalTransactionStateException ;
38
37
import org .springframework .transaction .TransactionDefinition ;
39
38
import org .springframework .transaction .reactive .TransactionSynchronization ;
@@ -149,7 +148,7 @@ public void appliesReadOnly() {
149
148
public void testCommitFails () {
150
149
151
150
when (connectionMock .commitTransaction ()).thenReturn (Mono .defer (() -> {
152
- return Mono .error (new IllegalStateException ());
151
+ return Mono .error (new IllegalStateException ("Commit should fail" ));
153
152
}));
154
153
155
154
TransactionalOperator operator = TransactionalOperator .create (tm );
You can’t perform that action at this time.
0 commit comments