Skip to content

Commit 6c3a3dc

Browse files
committed
Polishing
1 parent b1a7161 commit 6c3a3dc

File tree

2 files changed

+4
-7
lines changed
  • framework-docs/modules/ROOT/pages/testing/testcontext-framework
  • spring-test/src/main/java/org/springframework/test/context/jdbc

2 files changed

+4
-7
lines changed

framework-docs/modules/ROOT/pages/testing/testcontext-framework/executing-sql.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ individual attributes in {api-spring-framework}/test/context/jdbc/Sql.html[`@Sql
387387
{api-spring-framework}/test/context/jdbc/SqlConfig.html[`@SqlConfig`] for details.
388388

389389
[[testcontext-executing-sql-declaratively-tx]]
390-
*Transaction management for `@Sql`*
390+
==== Transaction management for `@Sql`
391391

392392
By default, the `SqlScriptsTestExecutionListener` infers the desired transaction
393393
semantics for scripts configured by using `@Sql`. Specifically, SQL scripts are run

spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,10 @@
5555
* annotation. Otherwise, {@link SqlGroup @SqlGroup} can be used as an explicit
5656
* container for declaring multiple instances of {@code @Sql}.
5757
*
58-
* <p>This annotation may be used as a <em>meta-annotation</em> to create custom
59-
* <em>composed annotations</em> with attribute overrides.
60-
*
61-
* <p>As of Spring Framework 5.3, this annotation will be inherited from an
62-
* enclosing test class by default. See
58+
* <p>This annotation will be inherited from an enclosing test class by default. See
6359
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
64-
* for details.
60+
* for details. This annotation may also be used as a <em>meta-annotation</em> to
61+
* create custom <em>composed annotations</em> with attribute overrides.
6562
*
6663
* <p>Use of this annotation requires the {@code spring-jdbc} and {@code spring-tx}
6764
* modules as well as their transitive dependencies to be present on the classpath.

0 commit comments

Comments
 (0)