Skip to content

Commit

Permalink
Adapt transactional test component declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Sep 27, 2024
1 parent cc3948e commit d3dd01e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.RestrictedTransactionalEventListenerFactory;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.event.TransactionalApplicationListenerMethodAdapterTests.SampleEvents.SampleEventsWithTransactionalAnnotation;
import org.springframework.transaction.support.TransactionSynchronization;
import org.springframework.transaction.support.TransactionSynchronizationManager;
import org.springframework.util.ClassUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ interface TransactionalComponentTestInterface {
}


@Transactional
@Transactional(propagation = Propagation.REQUIRES_NEW)
@Component
static class TransactionalComponentTestListenerWithInterface extends BaseTransactionalTestListener implements
TransactionalComponentTestInterface {
Expand Down

0 comments on commit d3dd01e

Please sign in to comment.