Browse Source

Polishing.

Reformat code.

See #1723
pull/1735/head
Mark Paluch 2 years ago
parent
commit
be94f7695c
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 8
      spring-data-r2dbc/src/test/java/org/springframework/data/r2dbc/repository/ConvertingR2dbcRepositoryIntegrationTests.java

8
spring-data-r2dbc/src/test/java/org/springframework/data/r2dbc/repository/ConvertingR2dbcRepositoryIntegrationTests.java

@ -57,7 +57,7 @@ import org.springframework.test.context.junit.jupiter.SpringExtension;
@ExtendWith(SpringExtension.class) @ExtendWith(SpringExtension.class)
public class ConvertingR2dbcRepositoryIntegrationTests { public class ConvertingR2dbcRepositoryIntegrationTests {
@Autowired private ConvertedRepository repository; private @Autowired ConvertedRepository repository;
private JdbcTemplate jdbc; private JdbcTemplate jdbc;
@Configuration @Configuration
@ -77,7 +77,7 @@ public class ConvertingR2dbcRepositoryIntegrationTests {
} }
@BeforeEach @BeforeEach
public void before() { void before() {
this.jdbc = new JdbcTemplate(createDataSource()); this.jdbc = new JdbcTemplate(createDataSource());
@ -124,8 +124,9 @@ public class ConvertingR2dbcRepositoryIntegrationTests {
}).verifyComplete(); }).verifyComplete();
} }
@Test @Test // GH-1723
void shouldNotUseConverterForCountQueries() { void shouldNotUseConverterForCountQueries() {
ConvertedEntity entity = new ConvertedEntity(); ConvertedEntity entity = new ConvertedEntity();
entity.name = "name"; entity.name = "name";
@ -142,6 +143,7 @@ public class ConvertingR2dbcRepositoryIntegrationTests {
} }
interface ConvertedRepository extends ReactiveCrudRepository<ConvertedEntity, Integer> { interface ConvertedRepository extends ReactiveCrudRepository<ConvertedEntity, Integer> {
@Query("SELECT COUNT(*) FROM CONVERTED_ENTITY") @Query("SELECT COUNT(*) FROM CONVERTED_ENTITY")
Mono<Long> countWithCustomQuery(); Mono<Long> countWithCustomQuery();
} }

Loading…
Cancel
Save