Skip to content

Commit 4be6bc2

Browse files
committed
Polishing.
Reduce test element visibility according to JUnit 5 requirements. See #1061
1 parent 09596ce commit 4be6bc2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/support/JdbcQueryLookupStrategyUnitTests.java

+12-12
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,19 @@
5353
* @author Mark Paluch
5454
* @author Hebert Coelho
5555
*/
56-
public class JdbcQueryLookupStrategyUnitTests {
56+
class JdbcQueryLookupStrategyUnitTests {
5757

58-
ApplicationEventPublisher publisher = mock(ApplicationEventPublisher.class);
59-
EntityCallbacks callbacks = mock(EntityCallbacks.class);
60-
RelationalMappingContext mappingContext = mock(RelationalMappingContext.class, RETURNS_DEEP_STUBS);
61-
JdbcConverter converter = mock(JdbcConverter.class);
62-
ProjectionFactory projectionFactory = mock(ProjectionFactory.class);
63-
RepositoryMetadata metadata;
64-
NamedQueries namedQueries = mock(NamedQueries.class);
65-
NamedParameterJdbcOperations operations = mock(NamedParameterJdbcOperations.class);
58+
private ApplicationEventPublisher publisher = mock(ApplicationEventPublisher.class);
59+
private EntityCallbacks callbacks = mock(EntityCallbacks.class);
60+
private RelationalMappingContext mappingContext = mock(RelationalMappingContext.class, RETURNS_DEEP_STUBS);
61+
private JdbcConverter converter = mock(JdbcConverter.class);
62+
private ProjectionFactory projectionFactory = mock(ProjectionFactory.class);
63+
private RepositoryMetadata metadata;
64+
private NamedQueries namedQueries = mock(NamedQueries.class);
65+
private NamedParameterJdbcOperations operations = mock(NamedParameterJdbcOperations.class);
6666

6767
@BeforeEach
68-
public void setup() {
68+
void setup() {
6969

7070
this.metadata = mock(RepositoryMetadata.class);
7171

@@ -75,7 +75,7 @@ public void setup() {
7575

7676
@Test // DATAJDBC-166
7777
@SuppressWarnings("unchecked")
78-
public void typeBasedRowMapperGetsUsedForQuery() {
78+
void typeBasedRowMapperGetsUsedForQuery() {
7979

8080
RowMapper<? extends NumberFormat> numberFormatMapper = mock(RowMapper.class);
8181
QueryMappingConfiguration mappingConfiguration = new DefaultQueryMappingConfiguration()
@@ -89,7 +89,7 @@ public void typeBasedRowMapperGetsUsedForQuery() {
8989
}
9090

9191
@Test // GH-1061
92-
public void prefersDeclaredQuery() {
92+
void prefersDeclaredQuery() {
9393

9494
RowMapper<? extends NumberFormat> numberFormatMapper = mock(RowMapper.class);
9595
QueryMappingConfiguration mappingConfiguration = new DefaultQueryMappingConfiguration()

0 commit comments

Comments
 (0)