Polishing.

Make test methods package private.

See #1565
This commit is contained in:
Jens Schauder
2024-07-16 11:24:31 +02:00
parent 82c84342a2
commit 1b091da5ee
2 changed files with 19 additions and 19 deletions

View File

@@ -26,10 +26,10 @@ import org.springframework.data.relational.core.sql.SqlIdentifier;
* @author Jens Schauder
* @author Mikhail Polivakha
*/
public class SqlIdentifierParameterSourceUnitTests {
class SqlIdentifierParameterSourceUnitTests {
@Test // DATAJDBC-386
public void empty() {
void empty() {
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
@@ -43,7 +43,7 @@ public class SqlIdentifierParameterSourceUnitTests {
}
@Test // DATAJDBC-386
public void addSingleValue() {
void addSingleValue() {
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
@@ -62,7 +62,7 @@ public class SqlIdentifierParameterSourceUnitTests {
}
@Test // DATAJDBC-386
public void addSingleValueWithType() {
void addSingleValueWithType() {
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
@@ -82,7 +82,7 @@ public class SqlIdentifierParameterSourceUnitTests {
}
@Test // DATAJDBC-386
public void addOtherDatabaseObjectIdentifierParameterSource() {
void addOtherDatabaseObjectIdentifierParameterSource() {
SqlIdentifierParameterSource parameters = new SqlIdentifierParameterSource();
parameters.addValue(SqlIdentifier.unquoted("key1"), 111, 11);

View File

@@ -77,7 +77,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
@Autowired WithDotColumnRepo withDotColumnRepo;
@Test // DATAJDBC-111
public void savesAnEntity() {
void savesAnEntity() {
DummyEntity entity = repository.save(createDummyEntity());
@@ -86,7 +86,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void saveAndLoadAnEntity() {
void saveAndLoadAnEntity() {
DummyEntity entity = repository.save(createDummyEntity());
@@ -102,7 +102,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void findAllFindsAllEntities() {
void findAllFindsAllEntities() {
DummyEntity entity = repository.save(createDummyEntity());
DummyEntity other = repository.save(createDummyEntity());
@@ -115,7 +115,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // GH-1676
public void findAllFindsAllEntitiesWithOnlyReferenceNotNull() {
void findAllFindsAllEntitiesWithOnlyReferenceNotNull() {
DummyEntity entity = createDummyEntity();
entity.prefixedEmbeddable.test = null;
@@ -130,14 +130,14 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void findByIdReturnsEmptyWhenNoneFound() {
void findByIdReturnsEmptyWhenNoneFound() {
// NOT saving anything, so DB is empty
assertThat(repository.findById(-1L)).isEmpty();
}
@Test // DATAJDBC-111
public void update() {
void update() {
DummyEntity entity = repository.save(createDummyEntity());
@@ -153,7 +153,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void updateMany() {
void updateMany() {
DummyEntity entity = repository.save(createDummyEntity());
DummyEntity other = repository.save(createDummyEntity());
@@ -177,7 +177,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void deleteById() {
void deleteById() {
DummyEntity one = repository.save(createDummyEntity());
DummyEntity two = repository.save(createDummyEntity());
@@ -191,7 +191,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void deleteByEntity() {
void deleteByEntity() {
DummyEntity one = repository.save(createDummyEntity());
DummyEntity two = repository.save(createDummyEntity());
DummyEntity three = repository.save(createDummyEntity());
@@ -204,7 +204,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void deleteByList() {
void deleteByList() {
DummyEntity one = repository.save(createDummyEntity());
DummyEntity two = repository.save(createDummyEntity());
@@ -218,7 +218,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-111
public void deleteAll() {
void deleteAll() {
repository.save(createDummyEntity());
repository.save(createDummyEntity());
@@ -232,7 +232,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // DATAJDBC-370
public void saveWithNullValueEmbeddable() {
void saveWithNullValueEmbeddable() {
DummyEntity entity = repository.save(new DummyEntity());
@@ -241,7 +241,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // GH-1286
public void findOrderedByEmbeddedProperty() {
void findOrderedByEmbeddedProperty() {
Person first = new Person(null, "Bob", "Seattle", new PersonContacts("ddd@example.com", "+1 111 1111 11 11"));
Person second = new Person(null, "Alex", "LA", new PersonContacts("aaa@example.com", "+2 222 2222 22 22"));
@@ -256,7 +256,7 @@ public class JdbcRepositoryEmbeddedIntegrationTests {
}
@Test // GH-1286
public void sortingWorksCorrectlyIfColumnHasDotInItsName() {
void sortingWorksCorrectlyIfColumnHasDotInItsName() {
WithDotColumn first = new WithDotColumn(null, "Salt Lake City");
WithDotColumn second = new WithDotColumn(null, "Istanbul");