diff --git a/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQuery.java b/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQuery.java index c9bda8d0..7215ca4f 100644 --- a/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQuery.java +++ b/spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQuery.java @@ -15,6 +15,8 @@ */ package org.springframework.data.jdbc.repository.query; +import java.sql.ResultSet; + import org.springframework.data.domain.Sort; import org.springframework.data.jdbc.core.convert.JdbcConverter; import org.springframework.data.relational.core.dialect.Dialect; @@ -29,8 +31,6 @@ import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcOperations; import org.springframework.util.Assert; -import java.sql.ResultSet; - /** * An {@link AbstractJdbcQuery} implementation based on a {@link PartTree}. * @@ -57,8 +57,8 @@ public class PartTreeJdbcQuery extends AbstractJdbcQuery { * @param operations must not be {@literal null}. * @param rowMapper must not be {@literal null}. */ - public PartTreeJdbcQuery(RelationalMappingContext context, JdbcQueryMethod queryMethod, Dialect dialect, JdbcConverter converter, - NamedParameterJdbcOperations operations, RowMapper rowMapper) { + public PartTreeJdbcQuery(RelationalMappingContext context, JdbcQueryMethod queryMethod, Dialect dialect, + JdbcConverter converter, NamedParameterJdbcOperations operations, RowMapper rowMapper) { super(queryMethod, operations, rowMapper); diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java index 100f0015..12cf1bed 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java @@ -17,6 +17,7 @@ package org.springframework.data.jdbc.repository; import static java.util.Arrays.*; import static org.assertj.core.api.Assertions.*; +import static org.assertj.core.api.SoftAssertions.*; import lombok.Data; @@ -26,11 +27,11 @@ import java.time.Instant; import java.util.ArrayList; import java.util.List; -import org.assertj.core.api.SoftAssertions; import org.junit.Before; import org.junit.ClassRule; import org.junit.Rule; import org.junit.Test; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.config.PropertiesFactoryBean; import org.springframework.context.ApplicationListener; @@ -360,7 +361,7 @@ public class JdbcRepositoryIntegrationTests { DummyEntity dummy = repository.save(createDummyEntity()); - SoftAssertions.assertSoftly(softly -> { + assertSoftly(softly -> { softly.assertThat(repository.existsByName(dummy.getName())) // .describedAs("Positive") //