fix(print): include Spring DAO exceptions at runtime
This commit is contained in:
@@ -23,6 +23,10 @@
|
|||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-web</artifactId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework</groupId>
|
||||||
|
<artifactId>spring-tx</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-core</artifactId>
|
<artifactId>spring-security-core</artifactId>
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ class PrintStatelessArchitectureTest {
|
|||||||
@Test
|
@Test
|
||||||
void runtimeClasspathDoesNotBringBackJdbcOrMybatisTransitively() {
|
void runtimeClasspathDoesNotBringBackJdbcOrMybatisTransitively() {
|
||||||
ClassLoader loader = getClass().getClassLoader();
|
ClassLoader loader = getClass().getClassLoader();
|
||||||
|
assertThat(isPresent("org.springframework.dao.CannotAcquireLockException", loader))
|
||||||
|
.as("common-web exception handling requires Spring DAO exceptions at runtime")
|
||||||
|
.isTrue();
|
||||||
assertThat(isPresent("org.springframework.jdbc.core.JdbcTemplate", loader))
|
assertThat(isPresent("org.springframework.jdbc.core.JdbcTemplate", loader))
|
||||||
.as("Print must exclude the JDBC starter inherited through common-core")
|
.as("Print must exclude the JDBC starter inherited through common-core")
|
||||||
.isFalse();
|
.isFalse();
|
||||||
|
|||||||
Reference in New Issue
Block a user