|
64 | 64 | * <em>rolled back</em> after completion of the test; whereas, changes to the
|
65 | 65 | * database during a test that is run with {@code @NotTransactional} will
|
66 | 66 | * <strong>not</strong> be run within a transaction. Test methods that are not
|
67 |
| - * annotated with either {@code @Transactional} (at the class or method level) |
68 |
| - * or {@code @NotTransactional} will not be run within a transaction. |
| 67 | + * annotated with {@code @Transactional} (at the class or method level) will not |
| 68 | + * be run within a transaction. |
69 | 69 | *
|
70 | 70 | * <p>Transactional commit and rollback behavior can be configured via the
|
71 | 71 | * class-level {@link TransactionConfiguration @TransactionConfiguration} and
|
72 | 72 | * method-level {@link Rollback @Rollback} annotations.
|
73 | 73 | *
|
74 | 74 | * <p>In case there are multiple instances of {@code PlatformTransactionManager}
|
75 |
| - * within the test's {@code ApplicationContext}, @{@code TransactionConfiguration} |
| 75 | + * within the test's {@code ApplicationContext}, {@code @TransactionConfiguration} |
76 | 76 | * supports configuring the bean name of the {@code PlatformTransactionManager}
|
77 | 77 | * that should be used to drive transactions. Alternatively,
|
78 | 78 | * {@link TransactionManagementConfigurer} can be implemented in an
|
|
90 | 90 | * @author Juergen Hoeller
|
91 | 91 | * @since 2.5
|
92 | 92 | * @see TransactionConfiguration
|
| 93 | + * @see TransactionManagementConfigurer |
93 | 94 | * @see org.springframework.transaction.annotation.Transactional
|
94 | 95 | * @see org.springframework.test.annotation.NotTransactional
|
95 | 96 | * @see org.springframework.test.annotation.Rollback
|
@@ -122,9 +123,9 @@ public class TransactionalTestExecutionListener extends AbstractTestExecutionLis
|
122 | 123 | * configured to run within a transaction, this method will run
|
123 | 124 | * {@link BeforeTransaction @BeforeTransaction methods} and start a new
|
124 | 125 | * transaction.
|
125 |
| - * <p>Note that if a {@code BeforeTransaction @BeforeTransaction method} fails, |
126 |
| - * remaining {@code BeforeTransaction @BeforeTransaction methods} will not |
127 |
| - * be invoked, and a transaction will not be started. |
| 126 | + * <p>Note that if a {@code @BeforeTransaction} method fails, any remaining |
| 127 | + * {@code @BeforeTransaction} methods will not be invoked, and a transaction |
| 128 | + * will not be started. |
128 | 129 | * @see org.springframework.transaction.annotation.Transactional
|
129 | 130 | * @see org.springframework.test.annotation.NotTransactional
|
130 | 131 | * @see #getTransactionManager(TestContext, String)
|
@@ -175,7 +176,7 @@ public String getName() {
|
175 | 176 | * If a transaction is currently active for the test method of the supplied
|
176 | 177 | * {@link TestContext test context}, this method will end the transaction
|
177 | 178 | * and run {@link AfterTransaction @AfterTransaction methods}.
|
178 |
| - * <p>{@code AfterTransaction @AfterTransaction methods} are guaranteed to be |
| 179 | + * <p>{@code @AfterTransaction} methods are guaranteed to be |
179 | 180 | * invoked even if an error occurs while ending the transaction.
|
180 | 181 | */
|
181 | 182 | @Override
|
@@ -521,9 +522,9 @@ private boolean isShadowed(Method current, Method previous) {
|
521 | 522 | * Retrieves the {@link TransactionConfigurationAttributes} for the
|
522 | 523 | * specified {@link Class class} which may optionally declare or inherit
|
523 | 524 | * {@link TransactionConfiguration @TransactionConfiguration}. If
|
524 |
| - * {@code @TransactionConfiguration} is not present for the supplied |
| 525 | + * {@code @TransactionConfiguration} is not present for the supplied |
525 | 526 | * class, the <em>default values</em> for attributes defined in
|
526 |
| - * {@code @TransactionConfiguration} will be used instead. |
| 527 | + * {@code @TransactionConfiguration} will be used instead. |
527 | 528 | * @param testContext the test context for which the configuration
|
528 | 529 | * attributes should be retrieved
|
529 | 530 | * @return a new TransactionConfigurationAttributes instance
|
|
0 commit comments