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
Throw exception if TxMgr cannot be retrieved for @transactional test
Prior to this commit, a @transactional integration test would silently
be executed without a transaction if the transaction manager could not
be retrieved from the application context -- for example, it no such
bean was defined or if multiple beans were present but none satisfied
the qualifier.
This commit addresses this issue by throwing an IllegalStateException
if the PlatformTransactionManager cannot be retrieved for a
@transactional test.
Issue: SPR-13895
Copy file name to clipboardExpand all lines: spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java
Copy file name to clipboardExpand all lines: spring-test/src/test/java/org/springframework/test/context/transaction/TransactionalTestExecutionListenerTests.java
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -155,6 +155,38 @@ public void cleanUpThreadLocalStateForSubsequentTestClassesInSuite() {
0 commit comments