Skip to content

Commit 3724ff2

Browse files
Bump spring-boot-v3 from 3.5.3 to 3.5.4 (#295)
* Bump spring-boot-v3 from 3.5.3 to 3.5.4 Bumps `spring-boot-v3` from 3.5.3 to 3.5.4. Updates `org.springframework.boot:spring-boot-dependencies` from 3.5.3 to 3.5.4 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.5.3...v3.5.4) Updates `org.springframework.boot` from 3.5.3 to 3.5.4 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v3.5.3...v3.5.4) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-dependencies dependency-version: 3.5.4 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.springframework.boot dependency-version: 3.5.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Fix tests --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Vakhrushev <[email protected]>
1 parent ec11040 commit 3724ff2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
detekt = "1.23.8"
3-
spring-boot-v3 = "3.5.3"
3+
spring-boot-v3 = "3.5.4"
44

55
[libraries]
66
detekt = { group = "io.gitlab.arturbosch.detekt", name = "detekt-gradle-plugin", version.ref = "detekt" }

spring-boot-3-demo-app-kotlin/src/test/kotlin/io/github/mfvanek/spring/boot3/kotlin/test/ApplicationTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import org.junit.jupiter.api.DisplayName
1414
import org.junit.jupiter.api.Test
1515
import org.springframework.beans.factory.annotation.Autowired
1616
import org.springframework.context.ApplicationContext
17-
import org.springframework.dao.DataAccessResourceFailureException
18-
import java.util.Locale
17+
import org.springframework.dao.QueryTimeoutException
18+
import java.util.*
1919
import java.util.function.Consumer
2020

2121
class ApplicationTests : TestBase() {
@@ -70,7 +70,7 @@ class ApplicationTests : TestBase() {
7070
@DisplayName("Throws exception when query exceeds timeout")
7171
fun exceptionWithLongQuery() {
7272
assertThatThrownBy { jdbcTemplate.execute("select pg_sleep(1.1);") }
73-
.isInstanceOf(DataAccessResourceFailureException::class.java)
73+
.isInstanceOf(QueryTimeoutException::class.java)
7474
.hasMessageContaining("ERROR: canceling statement due to user request")
7575
}
7676

spring-boot-3-demo-app/src/test/java/io/github/mfvanek/spring/boot3/test/ApplicationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.junit.jupiter.api.Test;
1919
import org.springframework.beans.factory.annotation.Autowired;
2020
import org.springframework.context.ApplicationContext;
21-
import org.springframework.dao.DataAccessResourceFailureException;
21+
import org.springframework.dao.QueryTimeoutException;
2222

2323
import java.util.Locale;
2424

@@ -66,7 +66,7 @@ void jdbcQueryTimeoutFromProperties() {
6666
@DisplayName("Throws exception when query exceeds timeout")
6767
void exceptionWithLongQuery() {
6868
assertThatThrownBy(() -> jdbcTemplate.execute("select pg_sleep(1.1);"))
69-
.isInstanceOf(DataAccessResourceFailureException.class)
69+
.isInstanceOf(QueryTimeoutException.class)
7070
.hasMessageContaining("ERROR: canceling statement due to user request");
7171
}
7272

0 commit comments

Comments
 (0)