Browse Source

Document that @Sql requires spring-jdbc & spring-tx on the classpath

Closes gh-30280
pull/30724/head
Sam Brannen 3 years ago
parent
commit
ed5c19f53e
  1. 5
      spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java
  2. 4
      spring-test/src/main/java/org/springframework/test/context/jdbc/SqlScriptsTestExecutionListener.java

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

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -57,6 +57,9 @@ import org.springframework.core.annotation.AliasFor; @@ -57,6 +57,9 @@ import org.springframework.core.annotation.AliasFor;
* {@link org.springframework.test.context.NestedTestConfiguration @NestedTestConfiguration}
* for details.
*
* <p>Use of this annotation requires that that the {@code spring-jdbc} and
* {@code spring-tx} modules be present in the classpath.
*
* @author Sam Brannen
* @since 4.1
* @see SqlConfig

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

@ -92,6 +92,10 @@ import static org.springframework.util.ResourceUtils.CLASSPATH_URL_PREFIX; @@ -92,6 +92,10 @@ import static org.springframework.util.ResourceUtils.CLASSPATH_URL_PREFIX;
* on permissible configuration constellations and on the algorithms used to
* locate these beans.
*
* <h3>Required Dependencies</h3>
* <p>Use of this listener requires that that the {@code spring-jdbc} and
* {@code spring-tx} modules be present in the classpath.
*
* @author Sam Brannen
* @author Dmitry Semukhin
* @since 4.1

Loading…
Cancel
Save