Skip to content

Commit 7388c90

Browse files
ngocnhan-tran1996mp911de
authored andcommitted
Fix typos in methods and reference docs.
Closes: #4058 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent f812cde commit 7388c90

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

spring-data-jpa/src/test/java/org/springframework/data/jpa/mapping/JpaMetamodelMappingContextUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class JpaMetamodelMappingContextUnitTests {
3333

3434
@Test // DATAJPA-775
35-
void jpaPersistentEntityRejectsSprignDataAtVersionAnnotation() {
35+
void jpaPersistentEntityRejectsSpringDataAtVersionAnnotation() {
3636

3737
Metamodel metamodel = mock(Metamodel.class);
3838

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/EntityGraphRepositoryMethodsIntegrationTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void shouldRespectConfiguredJpaEntityGraphInFindOne() {
121121

122122
assertThat(user).isNotNull();
123123
assertThat(util.isLoaded(user, "colleagues")) //
124-
.describedAs("colleages should be fetched with 'user.detail' fetchgraph") //
124+
.describedAs("colleagues should be fetched with 'user.detail' fetchgraph") //
125125
.isTrue();
126126
}
127127

@@ -137,7 +137,7 @@ void shouldRespectInferFetchGraphFromMethodName() {
137137

138138
assertThat(user).isNotNull();
139139
assertThat(util.isLoaded(user, "colleagues")) //
140-
.describedAs("colleages should be fetched with 'user.detail' fetchgraph") //
140+
.describedAs("colleagues should be fetched with 'user.detail' fetchgraph") //
141141
.isTrue();
142142
}
143143

@@ -154,7 +154,7 @@ void shouldRespectDynamicFetchGraphForGetOneWithAttributeNamesById() {
154154
assertThat(user).isNotNull();
155155

156156
assertThat(util.isLoaded(user, "colleagues")) //
157-
.describedAs("colleages should be fetched with 'user.detail' fetchgraph") //
157+
.describedAs("colleagues should be fetched with 'user.detail' fetchgraph") //
158158
.isTrue();
159159
assertThat(util.isLoaded(user, "colleagues")).isTrue();
160160

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/GreetingsFrom.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package org.springframework.data.jpa.repository;
1717

1818
/**
19-
* A trivial component registered via {@literal appication-context.xml} to be called from SpEL.
19+
* A trivial component registered via {@literal application-context.xml} to be called from SpEL.
2020
*/
2121
public class GreetingsFrom {
2222

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/UserRepositoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ void testInvocationOfCustomImplementation() {
449449
@Test
450450
void testOverwritingFinder() {
451451

452-
repository.findByOverrridingMethod();
452+
repository.findByOverridingMethod();
453453
}
454454

455455
@Test

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/DefaultQueryUtilsUnitTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ void prefixesSingleNonAliasedFunctionCallRelatedSortProperty() {
361361
}
362362

363363
@Test // DATAJPA-965, DATAJPA-970
364-
void prefixesNonAliasedFunctionCallRelatedSortPropertyWhenSelectClauseContainesAliasedFunctionForDifferentProperty() {
364+
void prefixesNonAliasedFunctionCallRelatedSortPropertyWhenSelectClauseContainsAliasedFunctionForDifferentProperty() {
365365

366366
String query = "SELECT m.name, AVG(m.price) AS avgPrice FROM Magazine m";
367367
Sort sort = Sort.by("name", "avgPrice");

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/query/Jpa21UtilsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void shouldCreateGraphWithDeepSubGraphCorrectly() {
115115
}
116116

117117
@Test // DATAJPA-1041, DATAJPA-1075
118-
void shouldIgnoreIntermedeateSubGraphNodesThatAreNotNeeded() {
118+
void shouldIgnoreIntermediateSubGraphNodesThatAreNotNeeded() {
119119

120120
assumeThat(currentEntityManagerIsAJpa21EntityManager(em)).isTrue();
121121

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/sample/UserRepositoryCustom.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface UserRepositoryCustom {
2727
/**
2828
* Method actually triggering a finder but being overridden.
2929
*/
30-
void findByOverrridingMethod();
30+
void findByOverridingMethod();
3131

3232
/**
3333
* Some custom method to implement.

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/sample/UserRepositoryImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void someCustomMethod(User u) {
4242
}
4343

4444
@Override
45-
public void findByOverrridingMethod() {
45+
public void findByOverridingMethod() {
4646
LOG.debug("A method overriding a finder was invoked");
4747
}
4848
}

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/support/DefaultJpaContextIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void rejectsUnmanagedType() {
102102
}
103103

104104
@Test // DATAJPA-669
105-
void returnsEntitymanagerForUniqueType() {
105+
void returnsEntityManagerForUniqueType() {
106106
assertThat(jpaContext.getEntityManagerByManagedType(Category.class)).isEqualTo(firstEm);
107107
}
108108

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/support/JpaRepositoryFactoryBeanEntityPathResolverIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void usesExplicitlyRegisteredEntityPathResolver() {
7777
}
7878

7979
@Test // DATAJPA-1234, DATAJPA-1394
80-
void rejectsMulitpleEntityPathResolvers() {
80+
void rejectsMultipleEntityPathResolvers() {
8181

8282
assertThatExceptionOfType(BeanCreationException.class).isThrownBy(() -> {
8383

0 commit comments

Comments
 (0)