mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix typos in tests
Closes gh-35815 Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
+2
-2
@@ -46,14 +46,14 @@ class YamlMapFactoryBeanTests {
|
||||
@Test
|
||||
void testSetIgnoreResourceNotFound() {
|
||||
this.factory.setResolutionMethod(YamlMapFactoryBean.ResolutionMethod.OVERRIDE_AND_IGNORE);
|
||||
this.factory.setResources(new FileSystemResource("non-exsitent-file.yml"));
|
||||
this.factory.setResources(new FileSystemResource("non-existent-file.yml"));
|
||||
assertThat(this.factory.getObject()).isEmpty();
|
||||
}
|
||||
|
||||
@Test
|
||||
void testSetBarfOnResourceNotFound() {
|
||||
assertThatIllegalStateException().isThrownBy(() -> {
|
||||
this.factory.setResources(new FileSystemResource("non-exsitent-file.yml"));
|
||||
this.factory.setResources(new FileSystemResource("non-existent-file.yml"));
|
||||
this.factory.getObject().size();
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ class MetadataAttachmentTests {
|
||||
void metadataIsInherited() {
|
||||
BeanDefinition beanDefinition = this.beanFactory.getMergedBeanDefinition("testBean2");
|
||||
assertThat(beanDefinition.getAttribute("foo")).as("Metadata not inherited").isEqualTo("bar");
|
||||
assertThat(beanDefinition.getAttribute("abc")).as("Child metdata not attached").isEqualTo("123");
|
||||
assertThat(beanDefinition.getAttribute("abc")).as("Child metadata not attached").isEqualTo("123");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ class CommonAnnotationBeanRegistrationAotContributionTests {
|
||||
|
||||
@Test
|
||||
@CompileWithForkedClassLoader
|
||||
void contributeWhenPackagePrivateFieldInjectionInjectsUsingFieldAssignement() {
|
||||
void contributeWhenPackagePrivateFieldInjectionInjectsUsingFieldAssignment() {
|
||||
this.beanFactory.registerSingleton("one", "1");
|
||||
this.beanFactory.registerSingleton("two", "2");
|
||||
RegisteredBean registeredBean = getAndApplyContribution(
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@ class InstrumentedMethodTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void classGetConstructorsShouldNotMatchWhemMissingTypeHint() {
|
||||
void classGetConstructorsShouldNotMatchWhenMissingTypeHint() {
|
||||
assertThatInvocationDoesNotMatch(InstrumentedMethod.CLASS_GETCONSTRUCTORS, this.stringGetConstructors);
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class MapTests extends AbstractExpressionTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void inelineMapIsInstanceOfMap() {
|
||||
void inlineMapIsInstanceOfMap() {
|
||||
evaluate("{a:1, b:2} instanceof T(java.util.Map)", "true", Boolean.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user