Skip to content

Commit 1b091da

Browse files
committed
Polishing.
Make test methods package private. See #1565
1 parent 82c8434 commit 1b091da

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/SqlIdentifierParameterSourceUnitTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
* @author Jens Schauder
2727
* @author Mikhail Polivakha
2828
*/
29-
public class SqlIdentifierParameterSourceUnitTests {
29+
class SqlIdentifierParameterSourceUnitTests {
3030

3131
@Test // DATAJDBC-386
32-
public void empty() {
32+
void empty() {
3333

3434
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
3535

@@ -43,7 +43,7 @@ public void empty() {
4343
}
4444

4545
@Test // DATAJDBC-386
46-
public void addSingleValue() {
46+
void addSingleValue() {
4747

4848
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
4949

@@ -62,7 +62,7 @@ public void addSingleValue() {
6262
}
6363

6464
@Test // DATAJDBC-386
65-
public void addSingleValueWithType() {
65+
void addSingleValueWithType() {
6666

6767
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
6868

@@ -82,7 +82,7 @@ public void addSingleValueWithType() {
8282
}
8383

8484
@Test // DATAJDBC-386
85-
public void addOtherDatabaseObjectIdentifierParameterSource() {
85+
void addOtherDatabaseObjectIdentifierParameterSource() {
8686

8787
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
8888
parameters.addValue(SqlIdentifier.unquoted("key1"), 111, 11);

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ WithDotColumnRepo withDotColumnRepo(JdbcRepositoryFactory factory) {
7777
@Autowired WithDotColumnRepo withDotColumnRepo;
7878

7979
@Test // DATAJDBC-111
80-
public void savesAnEntity() {
80+
void savesAnEntity() {
8181

8282
DummyEntity entity = repository.save(createDummyEntity());
8383

@@ -86,7 +86,7 @@ public void savesAnEntity() {
8686
}
8787

8888
@Test // DATAJDBC-111
89-
public void saveAndLoadAnEntity() {
89+
void saveAndLoadAnEntity() {
9090

9191
DummyEntity entity = repository.save(createDummyEntity());
9292

@@ -102,7 +102,7 @@ public void saveAndLoadAnEntity() {
102102
}
103103

104104
@Test // DATAJDBC-111
105-
public void findAllFindsAllEntities() {
105+
void findAllFindsAllEntities() {
106106

107107
DummyEntity entity = repository.save(createDummyEntity());
108108
DummyEntity other = repository.save(createDummyEntity());
@@ -115,7 +115,7 @@ public void findAllFindsAllEntities() {
115115
}
116116

117117
@Test // GH-1676
118-
public void findAllFindsAllEntitiesWithOnlyReferenceNotNull() {
118+
void findAllFindsAllEntitiesWithOnlyReferenceNotNull() {
119119

120120
DummyEntity entity = createDummyEntity();
121121
entity.prefixedEmbeddable.test = null;
@@ -130,14 +130,14 @@ public void findAllFindsAllEntitiesWithOnlyReferenceNotNull() {
130130
}
131131

132132
@Test // DATAJDBC-111
133-
public void findByIdReturnsEmptyWhenNoneFound() {
133+
void findByIdReturnsEmptyWhenNoneFound() {
134134

135135
// NOT saving anything, so DB is empty
136136
assertThat(repository.findById(-1L)).isEmpty();
137137
}
138138

139139
@Test // DATAJDBC-111
140-
public void update() {
140+
void update() {
141141

142142
DummyEntity entity = repository.save(createDummyEntity());
143143

@@ -153,7 +153,7 @@ public void update() {
153153
}
154154

155155
@Test // DATAJDBC-111
156-
public void updateMany() {
156+
void updateMany() {
157157

158158
DummyEntity entity = repository.save(createDummyEntity());
159159
DummyEntity other = repository.save(createDummyEntity());
@@ -177,7 +177,7 @@ public void updateMany() {
177177
}
178178

179179
@Test // DATAJDBC-111
180-
public void deleteById() {
180+
void deleteById() {
181181

182182
DummyEntity one = repository.save(createDummyEntity());
183183
DummyEntity two = repository.save(createDummyEntity());
@@ -191,7 +191,7 @@ public void deleteById() {
191191
}
192192

193193
@Test // DATAJDBC-111
194-
public void deleteByEntity() {
194+
void deleteByEntity() {
195195
DummyEntity one = repository.save(createDummyEntity());
196196
DummyEntity two = repository.save(createDummyEntity());
197197
DummyEntity three = repository.save(createDummyEntity());
@@ -204,7 +204,7 @@ public void deleteByEntity() {
204204
}
205205

206206
@Test // DATAJDBC-111
207-
public void deleteByList() {
207+
void deleteByList() {
208208

209209
DummyEntity one = repository.save(createDummyEntity());
210210
DummyEntity two = repository.save(createDummyEntity());
@@ -218,7 +218,7 @@ public void deleteByList() {
218218
}
219219

220220
@Test // DATAJDBC-111
221-
public void deleteAll() {
221+
void deleteAll() {
222222

223223
repository.save(createDummyEntity());
224224
repository.save(createDummyEntity());
@@ -232,7 +232,7 @@ public void deleteAll() {
232232
}
233233

234234
@Test // DATAJDBC-370
235-
public void saveWithNullValueEmbeddable() {
235+
void saveWithNullValueEmbeddable() {
236236

237237
DummyEntity entity = repository.save(new DummyEntity());
238238

@@ -241,7 +241,7 @@ public void saveWithNullValueEmbeddable() {
241241
}
242242

243243
@Test // GH-1286
244-
public void findOrderedByEmbeddedProperty() {
244+
void findOrderedByEmbeddedProperty() {
245245

246246
Person first = new Person(null, "Bob", "Seattle", new PersonContacts("[email protected]", "+1 111 1111 11 11"));
247247
Person second = new Person(null, "Alex", "LA", new PersonContacts("[email protected]", "+2 222 2222 22 22"));
@@ -256,7 +256,7 @@ public void findOrderedByEmbeddedProperty() {
256256
}
257257

258258
@Test // GH-1286
259-
public void sortingWorksCorrectlyIfColumnHasDotInItsName() {
259+
void sortingWorksCorrectlyIfColumnHasDotInItsName() {
260260

261261
WithDotColumn first = new WithDotColumn(null, "Salt Lake City");
262262
WithDotColumn second = new WithDotColumn(null, "Istanbul");

0 commit comments

Comments
 (0)