Polishing

This commit is contained in:
Sam Brannen
2025-12-29 11:43:23 +02:00
parent 5b6c231788
commit 7212fbe36a
2 changed files with 22 additions and 26 deletions
@@ -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);