DATAJDBC-529 - Polishing.

Rearrange imports.

Original pull request: #212.
This commit is contained in:
Mark Paluch
2020-05-05 13:45:11 +02:00
parent 370ee4464e
commit b0d37bda8a
2 changed files with 7 additions and 6 deletions

View File

@@ -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<Object> rowMapper) {
public PartTreeJdbcQuery(RelationalMappingContext context, JdbcQueryMethod queryMethod, Dialect dialect,
JdbcConverter converter, NamedParameterJdbcOperations operations, RowMapper<Object> rowMapper) {
super(queryMethod, operations, rowMapper);

View File

@@ -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") //