diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/BasicJdbcConverterUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/BasicJdbcConverterUnitTests.java index 7f21e24bf..cb60ed38f 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/BasicJdbcConverterUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/BasicJdbcConverterUnitTests.java @@ -131,7 +131,7 @@ public class BasicJdbcConverterUnitTests { } - @Test // #945 + @Test // GH-945 void conversionOfPrimitiveArrays() { int[] ints = { 1, 2, 3, 4, 5 }; diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategyUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategyUnitTests.java index 97a10836d..48464a0f6 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategyUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/DefaultDataAccessStrategyUnitTests.java @@ -193,7 +193,7 @@ public class DefaultDataAccessStrategyUnitTests { assertThat(paramSourceCaptor.getValue().getValue("DUMMYENTITYROOT")).isEqualTo(rawId); } - @Test // #933 + @Test // GH-933 public void insertWithDefinedIdDoesNotRetrieveGeneratedKeys() { Object generatedId = accessStrategy.insert(new DummyEntity(ORIGINAL_ID), DummyEntity.class, Identifier.from(additionalParameters)); @@ -204,7 +204,7 @@ public class DefaultDataAccessStrategyUnitTests { paramSourceCaptor.capture()); } - @Test // #933 + @Test // GH-933 public void insertWithUndefinedIdRetrievesGeneratedKeys() { when(namedJdbcOperations.update(any(), any(), any())) diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/JdbcCustomConversionsUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/JdbcCustomConversionsUnitTests.java index 4aaa345b9..e6df3f056 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/JdbcCustomConversionsUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/convert/JdbcCustomConversionsUnitTests.java @@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test; */ class JdbcCustomConversionsUnitTests { - @Test // #937 + @Test // GH-937 void registersNonDateDefaultConverter() { JdbcCustomConversions conversions = new JdbcCustomConversions(); diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcDb2DialectUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcDb2DialectUnitTests.java index 116d458da..6c824ade3 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcDb2DialectUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcDb2DialectUnitTests.java @@ -32,7 +32,7 @@ import org.springframework.data.jdbc.core.convert.JdbcCustomConversions; */ class JdbcDb2DialectUnitTests { - @Test // #974 + @Test // GH-974 void testCustomConversions() { JdbcCustomConversions customConversions = new JdbcCustomConversions( diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcMySqlDialectUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcMySqlDialectUnitTests.java index 26c0e6875..bcb4f8af2 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcMySqlDialectUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/dialect/JdbcMySqlDialectUnitTests.java @@ -32,7 +32,7 @@ import org.springframework.data.jdbc.core.convert.JdbcValue; */ class JdbcMySqlDialectUnitTests { - @Test // #974 + @Test // GH-974 void testCustomConversions() { JdbcCustomConversions customConversions = new JdbcCustomConversions( diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/mapping/BasicJdbcPersistentPropertyUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/mapping/BasicJdbcPersistentPropertyUnitTests.java index 8d613ee58..7bb727b2e 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/mapping/BasicJdbcPersistentPropertyUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/core/mapping/BasicJdbcPersistentPropertyUnitTests.java @@ -96,7 +96,7 @@ public class BasicJdbcPersistentPropertyUnitTests { assertThat(listProperty.getReverseColumnName(path)).isEqualTo(quoted("override_id")); } - @Test // #938 + @Test // GH-938 void considersAggregateReferenceAnAssociation() { RelationalPersistentEntity entity = context.getRequiredPersistentEntity(DummyEntity.class); diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java index 41a4fce50..c4dd47552 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/JdbcRepositoryIntegrationTests.java @@ -402,7 +402,7 @@ public class JdbcRepositoryIntegrationTests { assertThat(repository.countByName(one.getName())).isEqualTo(2); } - @Test // #945 + @Test // GH-945 @EnabledOnFeature(TestDatabaseFeatures.Feature.IS_POSTGRES) public void usePrimitiveArrayAsArgument() { assertThat(repository.unnestPrimitive(new int[] { 1, 2, 3 })).containsExactly(1, 2, 3); @@ -439,7 +439,7 @@ public class JdbcRepositoryIntegrationTests { assertThat(slice.hasNext()).isTrue(); } - @Test // #935 + @Test // GH-935 public void queryByOffsetDateTime() { Instant now = createDummyBeforeAndAfterNow(); @@ -450,7 +450,7 @@ public class JdbcRepositoryIntegrationTests { assertThat(entities).extracting(DummyEntity::getName).containsExactly("second"); } - @Test // #971 + @Test // GH-971 public void stringQueryProjectionShouldReturnProjectedEntities() { repository.save(createDummyEntity()); @@ -461,7 +461,7 @@ public class JdbcRepositoryIntegrationTests { assertThat(result.get(0).getName()).isEqualTo("Entity Name"); } - @Test // #971 + @Test // GH-971 public void stringQueryProjectionShouldReturnDtoProjectedEntities() { repository.save(createDummyEntity()); @@ -472,7 +472,7 @@ public class JdbcRepositoryIntegrationTests { assertThat(result.get(0).getName()).isEqualTo("Entity Name"); } - @Test // #971 + @Test // GH-971 public void partTreeQueryProjectionShouldReturnProjectedEntities() { repository.save(createDummyEntity()); @@ -483,7 +483,7 @@ public class JdbcRepositoryIntegrationTests { assertThat(result.get(0).getName()).isEqualTo("Entity Name"); } - @Test // #971 + @Test // GH-971 public void pageQueryProjectionShouldReturnProjectedEntities() { repository.save(createDummyEntity()); @@ -494,14 +494,14 @@ public class JdbcRepositoryIntegrationTests { assertThat(result.getContent().get(0).getName()).isEqualTo("Entity Name"); } - @Test // #974 + @Test // GH-974 @EnabledOnFeature(TestDatabaseFeatures.Feature.IS_POSTGRES) void intervalCalculation() { repository.updateWithIntervalCalculation(23L, LocalDateTime.now()); } - @Test // #908 + @Test // GH-908 void derivedQueryWithBooleanLiteralFindsCorrectValues() { repository.save(createDummyEntity()); diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/config/AbstractJdbcConfigurationIntegrationTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/config/AbstractJdbcConfigurationIntegrationTests.java index e2cad273d..91e166f3c 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/config/AbstractJdbcConfigurationIntegrationTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/config/AbstractJdbcConfigurationIntegrationTests.java @@ -70,7 +70,7 @@ public class AbstractJdbcConfigurationIntegrationTests { }, AbstractJdbcConfigurationUnderTest.class, Infrastructure.class); } - @Test // #975 + @Test // GH-975 void registersSimpleTypesFromCustomConversions() { assertApplicationContext(context -> { @@ -84,7 +84,7 @@ public class AbstractJdbcConfigurationIntegrationTests { }, AbstractJdbcConfigurationUnderTest.class, Infrastructure.class); } - @Test // #908 + @Test // GH-908 void userProvidedConversionsOverwriteDialectSpecificConversions() { assertApplicationContext(applicationContext -> { diff --git a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQueryUnitTests.java b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQueryUnitTests.java index 3416ae0bf..93e318447 100644 --- a/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQueryUnitTests.java +++ b/spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/query/PartTreeJdbcQueryUnitTests.java @@ -117,7 +117,7 @@ public class PartTreeJdbcQueryUnitTests { assertThat(query.getQuery()).isEqualTo(BASE_SELECT + " WHERE " + TABLE + ".\"FIRST_NAME\" = :first_name"); } - @Test // #971 + @Test // GH-971 public void createsQueryToFindAllEntitiesByProjectionAttribute() throws Exception { when(returnedType.needsCustomConstruction()).thenReturn(true); diff --git a/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/ConditionsUnitTests.java b/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/ConditionsUnitTests.java index 20f39eb02..e8b875e30 100644 --- a/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/ConditionsUnitTests.java +++ b/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/ConditionsUnitTests.java @@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test; */ class ConditionsUnitTests { - @Test // #916 + @Test // GH-916 void notInOfColumnAndExpression() { Table table = Table.create("t"); diff --git a/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/render/ConditionRendererUnitTests.java b/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/render/ConditionRendererUnitTests.java index 3f02300d0..3cf7cba04 100644 --- a/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/render/ConditionRendererUnitTests.java +++ b/spring-data-relational/src/test/java/org/springframework/data/relational/core/sql/render/ConditionRendererUnitTests.java @@ -233,7 +233,7 @@ public class ConditionRendererUnitTests { assertThat(sql).endsWith("WHERE my_table.left NOT IN (my_table.right)"); } - @Test // #907 + @Test // GH-907 public void shouldRenderJust() { String sql = SqlRenderer.toString(StatementBuilder.select(left).from(table) @@ -243,7 +243,7 @@ public class ConditionRendererUnitTests { assertThat(sql).endsWith("WHERE sql"); } - @Test // #907 + @Test // GH-907 public void shouldRenderMultipleJust() { String sql = SqlRenderer.toString(StatementBuilder.select(left).from(table) diff --git a/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java b/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java index 30f2016ba..608618bd6 100644 --- a/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java +++ b/spring-data-relational/src/test/java/org/springframework/data/relational/repository/query/RelationalExampleMapperTests.java @@ -49,7 +49,7 @@ public class RelationalExampleMapperTests { exampleMapper = new RelationalExampleMapper(new RelationalMappingContext()); } - @Test // #929 + @Test // GH-929 void queryByExampleWithId() { Person person = new Person(); @@ -64,7 +64,7 @@ public class RelationalExampleMapperTests { .hasValue("(id = 'id1')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstname() { Person person = new Person(); @@ -79,7 +79,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname = 'Frodo')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameAndLastname() { Person person = new Person(); @@ -95,7 +95,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname = 'Frodo') AND (lastname = 'Baggins')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithNullMatchingLastName() { Person person = new Person(); @@ -111,7 +111,7 @@ public class RelationalExampleMapperTests { .hasValue("(lastname IS NULL OR lastname = 'Baggins')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithNullMatchingFirstnameAndLastname() { Person person = new Person(); @@ -128,7 +128,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname IS NULL OR firstname = 'Bilbo') AND (lastname IS NULL OR lastname = 'Baggins')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameAndLastnameIgnoringFirstname() { Person person = new Person(); @@ -145,7 +145,7 @@ public class RelationalExampleMapperTests { .hasValue("(lastname = 'Baggins')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameAndLastnameWithNullMatchingIgnoringFirstName() { Person person = new Person(); @@ -162,7 +162,7 @@ public class RelationalExampleMapperTests { .hasValue("(lastname IS NULL OR lastname = 'Baggins')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingAtTheBeginning() { Person person = new Person(); @@ -178,7 +178,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname LIKE 'Fro%')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingOnTheEnding() { Person person = new Person(); @@ -194,7 +194,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname LIKE '%do')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingContaining() { Person person = new Person(); @@ -210,7 +210,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname LIKE '%do%')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingRegEx() { Person person = new Person(); @@ -223,7 +223,7 @@ public class RelationalExampleMapperTests { .withMessageContaining("REGEX is not supported!"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithFieldSpecificStringMatcherEndsWith() { Person person = new Person(); @@ -239,7 +239,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname LIKE '%do')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithFieldSpecificStringMatcherStartsWith() { Person person = new Person(); @@ -255,7 +255,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname LIKE 'Fro%')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithFieldSpecificStringMatcherContains() { Person person = new Person(); @@ -271,7 +271,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname LIKE '%do%')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingAtTheBeginningIncludingNull() { Person person = new Person(); @@ -287,7 +287,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname IS NULL OR firstname LIKE 'Fro%')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingOnTheEndingIncludingNull() { Person person = new Person(); @@ -303,7 +303,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname IS NULL OR firstname LIKE '%do')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameIgnoreCaseFieldLevel() { Person person = new Person(); @@ -321,7 +321,7 @@ public class RelationalExampleMapperTests { assertThat(example.getMatcher().getPropertySpecifiers().getForPath("firstname").getIgnoreCase()).isTrue(); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameWithStringMatchingContainingIncludingNull() { Person person = new Person(); @@ -337,7 +337,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname IS NULL OR firstname LIKE '%do%')"); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameIgnoreCase() { Person person = new Person(); @@ -355,7 +355,7 @@ public class RelationalExampleMapperTests { assertThat(example.getMatcher().isIgnoreCaseEnabled()).isTrue(); } - @Test // #929 + @Test // GH-929 void queryByExampleWithFirstnameOrLastname() { Person person = new Person(); @@ -372,7 +372,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname = 'Frodo') OR (lastname = 'Baggins')"); } - @Test // #929 + @Test // GH-929 void queryByExampleEvenHandlesInvisibleFields() { Person person = new Person(); @@ -388,7 +388,7 @@ public class RelationalExampleMapperTests { .hasValue("(firstname = 'Frodo') AND (secret = 'I have the ring!')"); } - @Test // #929 + @Test // GH-929 void queryByExampleSupportsPropertyTransforms() { Person person = new Person();