Unifying GitHub references to GH-nnn.
Original pull request #903 See #578
This commit is contained in:
@@ -131,7 +131,7 @@ public class BasicJdbcConverterUnitTests {
|
||||
|
||||
}
|
||||
|
||||
@Test // #945
|
||||
@Test // GH-945
|
||||
void conversionOfPrimitiveArrays() {
|
||||
|
||||
int[] ints = { 1, 2, 3, 4, 5 };
|
||||
|
||||
@@ -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()))
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test;
|
||||
*/
|
||||
class JdbcCustomConversionsUnitTests {
|
||||
|
||||
@Test // #937
|
||||
@Test // GH-937
|
||||
void registersNonDateDefaultConverter() {
|
||||
|
||||
JdbcCustomConversions conversions = new JdbcCustomConversions();
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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 -> {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.junit.jupiter.api.Test;
|
||||
*/
|
||||
class ConditionsUnitTests {
|
||||
|
||||
@Test // #916
|
||||
@Test // GH-916
|
||||
void notInOfColumnAndExpression() {
|
||||
|
||||
Table table = Table.create("t");
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user