mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
Polishing
This commit is contained in:
-2
@@ -373,8 +373,6 @@ class EnableTransactionManagementTests {
|
||||
TestServiceWithRollback bean = ctx.getBean("testBean", TestServiceWithRollback.class);
|
||||
CallCountingTransactionManager txManager = ctx.getBean(CallCountingTransactionManager.class);
|
||||
|
||||
Method method1 = TestServiceWithRollback.class.getMethod("methodOne");
|
||||
Method method2 = TestServiceWithRollback.class.getMethod("methodTwo");
|
||||
assertThatException().isThrownBy(bean::methodOne);
|
||||
assertThatException().isThrownBy(bean::methodTwo);
|
||||
assertThat(txManager.begun).isEqualTo(2);
|
||||
|
||||
Reference in New Issue
Block a user