From 7d2ef69c6de4950c2104d7feb842b74238b8402c Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 19 Jul 2014 10:52:46 +0200 Subject: [PATCH] Polish Javadoc for TransactionalTestExecutionListener --- .../TransactionalTestExecutionListener.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java b/spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java index 13f915cc66..5ebb80d498 100644 --- a/spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java +++ b/spring-test/src/main/java/org/springframework/test/context/transaction/TransactionalTestExecutionListener.java @@ -53,15 +53,16 @@ import static org.springframework.core.annotation.AnnotationUtils.*; * *

Test-managed Transactions

*

Test-managed transactions are transactions that are managed - * by this listener. Such transactions should not be confused with + * declaratively via this listener or programmatically via + * {@link TestTransaction}. Such transactions should not be confused with * Spring-managed transactions (i.e., those managed directly * by Spring within the {@code ApplicationContext} loaded for tests) or * application-managed transactions (i.e., those managed * programmatically within application code that is invoked via tests). - * Spring-managed transactions and application-managed transactions will - * typically participate in test-managed transactions; however, caution - * should be taken if Spring-managed transactions or application-managed - * transactions are configured with any propagation type other than + * Spring-managed and application-managed transactions will typically + * participate in test-managed transactions; however, caution should be + * taken if Spring-managed or application-managed transactions are + * configured with any propagation type other than * {@link org.springframework.transaction.annotation.Propagation#REQUIRED REQUIRED} * or {@link org.springframework.transaction.annotation.Propagation#SUPPORTS SUPPORTS}. * @@ -72,8 +73,8 @@ import static org.springframework.core.annotation.AnnotationUtils.*; * annotated with {@code @Transactional}, each test method within that class * hierarchy will be run within a transaction. Test methods that are * not annotated with {@code @Transactional} (at the class or method - * level) will not be run within a transaction. Furthermore, test methods - * that are annotated with {@code @Transactional} but have the + * level) will not be run within a transaction. Furthermore, tests that + * are annotated with {@code @Transactional} but have the * {@link org.springframework.transaction.annotation.Transactional#propagation propagation} * type set to * {@link org.springframework.transaction.annotation.Propagation#NOT_SUPPORTED NOT_SUPPORTED}