Skip to content

Commit 18d8d45

Browse files
Fix typos in tests
Closes gh-35815 Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 1aa5201 commit 18d8d45

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

spring-beans/src/test/java/org/springframework/beans/factory/config/YamlMapFactoryBeanTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ class YamlMapFactoryBeanTests {
4646
@Test
4747
void testSetIgnoreResourceNotFound() {
4848
this.factory.setResolutionMethod(YamlMapFactoryBean.ResolutionMethod.OVERRIDE_AND_IGNORE);
49-
this.factory.setResources(new FileSystemResource("non-exsitent-file.yml"));
49+
this.factory.setResources(new FileSystemResource("non-existent-file.yml"));
5050
assertThat(this.factory.getObject()).isEmpty();
5151
}
5252

5353
@Test
5454
void testSetBarfOnResourceNotFound() {
5555
assertThatIllegalStateException().isThrownBy(() -> {
56-
this.factory.setResources(new FileSystemResource("non-exsitent-file.yml"));
56+
this.factory.setResources(new FileSystemResource("non-existent-file.yml"));
5757
this.factory.getObject().size();
5858
});
5959
}

spring-beans/src/test/java/org/springframework/beans/factory/xml/MetadataAttachmentTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void metadataAttachment() {
5151
void metadataIsInherited() {
5252
BeanDefinition beanDefinition = this.beanFactory.getMergedBeanDefinition("testBean2");
5353
assertThat(beanDefinition.getAttribute("foo")).as("Metadata not inherited").isEqualTo("bar");
54-
assertThat(beanDefinition.getAttribute("abc")).as("Child metdata not attached").isEqualTo("123");
54+
assertThat(beanDefinition.getAttribute("abc")).as("Child metadata not attached").isEqualTo("123");
5555
}
5656

5757
@Test

spring-context/src/test/java/org/springframework/context/annotation/CommonAnnotationBeanRegistrationAotContributionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void contributeWhenPrivateFieldInjectionInjectsUsingReflection() {
9292

9393
@Test
9494
@CompileWithForkedClassLoader
95-
void contributeWhenPackagePrivateFieldInjectionInjectsUsingFieldAssignement() {
95+
void contributeWhenPackagePrivateFieldInjectionInjectsUsingFieldAssignment() {
9696
this.beanFactory.registerSingleton("one", "1");
9797
this.beanFactory.registerSingleton("two", "2");
9898
RegisteredBean registeredBean = getAndApplyContribution(

spring-core-test/src/test/java/org/springframework/aot/agent/InstrumentedMethodTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void classGetConstructorsShouldMatchTypeHint() {
154154
}
155155

156156
@Test
157-
void classGetConstructorsShouldNotMatchWhemMissingTypeHint() {
157+
void classGetConstructorsShouldNotMatchWhenMissingTypeHint() {
158158
assertThatInvocationDoesNotMatch(InstrumentedMethod.CLASS_GETCONSTRUCTORS, this.stringGetConstructors);
159159
}
160160

spring-expression/src/test/java/org/springframework/expression/spel/MapTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void inlineMapSyntaxError() {
8181
}
8282

8383
@Test
84-
void inelineMapIsInstanceOfMap() {
84+
void inlineMapIsInstanceOfMap() {
8585
evaluate("{a:1, b:2} instanceof T(java.util.Map)", "true", Boolean.class);
8686
}
8787

0 commit comments

Comments
 (0)