Skip to content

Commit 1612b7c

Browse files
committed
Remove test prefixes
1 parent 01acb80 commit 1612b7c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ void genericsBasedInjectionWithLateGenericsMatchingOnJdkProxyAndRawInstance() {
991991
}
992992

993993
@Test
994-
void testSelfReferenceExclusionForFactoryMethodOnSameBean() {
994+
void selfReferenceExclusionForFactoryMethodOnSameBean() {
995995
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
996996
bpp.setBeanFactory(beanFactory);
997997
beanFactory.addBeanPostProcessor(bpp);
@@ -1005,7 +1005,7 @@ void testSelfReferenceExclusionForFactoryMethodOnSameBean() {
10051005
}
10061006

10071007
@Test
1008-
void testConfigWithDefaultMethods() {
1008+
void configWithDefaultMethods() {
10091009
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
10101010
bpp.setBeanFactory(beanFactory);
10111011
beanFactory.addBeanPostProcessor(bpp);
@@ -1019,7 +1019,7 @@ void testConfigWithDefaultMethods() {
10191019
}
10201020

10211021
@Test
1022-
void testConfigWithDefaultMethodsUsingAsm() {
1022+
void configWithDefaultMethodsUsingAsm() {
10231023
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
10241024
bpp.setBeanFactory(beanFactory);
10251025
beanFactory.addBeanPostProcessor(bpp);
@@ -1033,7 +1033,7 @@ void testConfigWithDefaultMethodsUsingAsm() {
10331033
}
10341034

10351035
@Test
1036-
void testConfigWithFailingInit() { // gh-23343
1036+
void configWithFailingInit() { // gh-23343
10371037
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
10381038
bpp.setBeanFactory(beanFactory);
10391039
beanFactory.addBeanPostProcessor(bpp);
@@ -1047,7 +1047,7 @@ void testConfigWithFailingInit() { // gh-23343
10471047
}
10481048

10491049
@Test
1050-
void testCircularDependency() {
1050+
void circularDependency() {
10511051
AutowiredAnnotationBeanPostProcessor bpp = new AutowiredAnnotationBeanPostProcessor();
10521052
bpp.setBeanFactory(beanFactory);
10531053
beanFactory.addBeanPostProcessor(bpp);
@@ -1061,42 +1061,42 @@ void testCircularDependency() {
10611061
}
10621062

10631063
@Test
1064-
void testCircularDependencyWithApplicationContext() {
1064+
void circularDependencyWithApplicationContext() {
10651065
assertThatExceptionOfType(BeanCreationException.class)
10661066
.isThrownBy(() -> new AnnotationConfigApplicationContext(A.class, AStrich.class))
10671067
.withMessageContaining("Circular reference");
10681068
}
10691069

10701070
@Test
1071-
void testPrototypeArgumentThroughBeanMethodCall() {
1071+
void prototypeArgumentThroughBeanMethodCall() {
10721072
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(BeanArgumentConfigWithPrototype.class);
10731073
ctx.getBean(FooFactory.class).createFoo(new BarArgument());
10741074
ctx.close();
10751075
}
10761076

10771077
@Test
1078-
void testSingletonArgumentThroughBeanMethodCall() {
1078+
void singletonArgumentThroughBeanMethodCall() {
10791079
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(BeanArgumentConfigWithSingleton.class);
10801080
ctx.getBean(FooFactory.class).createFoo(new BarArgument());
10811081
ctx.close();
10821082
}
10831083

10841084
@Test
1085-
void testNullArgumentThroughBeanMethodCall() {
1085+
void nullArgumentThroughBeanMethodCall() {
10861086
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(BeanArgumentConfigWithNull.class);
10871087
ctx.getBean("aFoo");
10881088
ctx.close();
10891089
}
10901090

10911091
@Test
1092-
void testInjectionPointMatchForNarrowTargetReturnType() {
1092+
void injectionPointMatchForNarrowTargetReturnType() {
10931093
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(FooBarConfiguration.class);
10941094
assertThat(ctx.getBean(FooImpl.class).bar).isSameAs(ctx.getBean(BarImpl.class));
10951095
ctx.close();
10961096
}
10971097

10981098
@Test
1099-
void testVarargOnBeanMethod() {
1099+
void varargOnBeanMethod() {
11001100
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(VarargConfiguration.class, TestBean.class);
11011101
VarargConfiguration bean = ctx.getBean(VarargConfiguration.class);
11021102
assertThat(bean.testBeans).isNotNull();
@@ -1106,7 +1106,7 @@ void testVarargOnBeanMethod() {
11061106
}
11071107

11081108
@Test
1109-
void testEmptyVarargOnBeanMethod() {
1109+
void emptyVarargOnBeanMethod() {
11101110
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(VarargConfiguration.class);
11111111
VarargConfiguration bean = ctx.getBean(VarargConfiguration.class);
11121112
assertThat(bean.testBeans).isNotNull();
@@ -1115,62 +1115,62 @@ void testEmptyVarargOnBeanMethod() {
11151115
}
11161116

11171117
@Test
1118-
void testCollectionArgumentOnBeanMethod() {
1118+
void collectionArgumentOnBeanMethod() {
11191119
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(CollectionArgumentConfiguration.class, TestBean.class);
11201120
CollectionArgumentConfiguration bean = ctx.getBean(CollectionArgumentConfiguration.class);
11211121
assertThat(bean.testBeans).containsExactly(ctx.getBean(TestBean.class));
11221122
ctx.close();
11231123
}
11241124

11251125
@Test
1126-
void testEmptyCollectionArgumentOnBeanMethod() {
1126+
void emptyCollectionArgumentOnBeanMethod() {
11271127
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(CollectionArgumentConfiguration.class);
11281128
CollectionArgumentConfiguration bean = ctx.getBean(CollectionArgumentConfiguration.class);
11291129
assertThat(bean.testBeans).isEmpty();
11301130
ctx.close();
11311131
}
11321132

11331133
@Test
1134-
void testMapArgumentOnBeanMethod() {
1134+
void mapArgumentOnBeanMethod() {
11351135
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(MapArgumentConfiguration.class, DummyRunnable.class);
11361136
MapArgumentConfiguration bean = ctx.getBean(MapArgumentConfiguration.class);
11371137
assertThat(bean.testBeans).hasSize(1).containsValue(ctx.getBean(Runnable.class));
11381138
ctx.close();
11391139
}
11401140

11411141
@Test
1142-
void testEmptyMapArgumentOnBeanMethod() {
1142+
void emptyMapArgumentOnBeanMethod() {
11431143
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(MapArgumentConfiguration.class);
11441144
MapArgumentConfiguration bean = ctx.getBean(MapArgumentConfiguration.class);
11451145
assertThat(bean.testBeans).isEmpty();
11461146
ctx.close();
11471147
}
11481148

11491149
@Test
1150-
void testCollectionInjectionFromSameConfigurationClass() {
1150+
void collectionInjectionFromSameConfigurationClass() {
11511151
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(CollectionInjectionConfiguration.class);
11521152
CollectionInjectionConfiguration bean = ctx.getBean(CollectionInjectionConfiguration.class);
11531153
assertThat(bean.testBeans).containsExactly(ctx.getBean(TestBean.class));
11541154
ctx.close();
11551155
}
11561156

11571157
@Test
1158-
void testMapInjectionFromSameConfigurationClass() {
1158+
void mapInjectionFromSameConfigurationClass() {
11591159
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(MapInjectionConfiguration.class);
11601160
MapInjectionConfiguration bean = ctx.getBean(MapInjectionConfiguration.class);
11611161
assertThat(bean.testBeans).containsOnly(Map.entry("testBean", ctx.getBean(Runnable.class)));
11621162
ctx.close();
11631163
}
11641164

11651165
@Test
1166-
void testBeanLookupFromSameConfigurationClass() {
1166+
void beanLookupFromSameConfigurationClass() {
11671167
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(BeanLookupConfiguration.class);
11681168
assertThat(ctx.getBean(BeanLookupConfiguration.class).getTestBean()).isSameAs(ctx.getBean(TestBean.class));
11691169
ctx.close();
11701170
}
11711171

11721172
@Test
1173-
void testNameClashBetweenConfigurationClassAndBean() {
1173+
void nameClashBetweenConfigurationClassAndBean() {
11741174
assertThatIllegalStateException()
11751175
.isThrownBy(() -> new AnnotationConfigApplicationContext(MyTestBean.class))
11761176
.withMessage("Failed to load bean definitions for configuration class '%s'", MyTestBean.class.getName())
@@ -1179,7 +1179,7 @@ void testNameClashBetweenConfigurationClassAndBean() {
11791179
}
11801180

11811181
@Test
1182-
void testBeanDefinitionRegistryPostProcessorConfig() {
1182+
void beanDefinitionRegistryPostProcessorConfig() {
11831183
ConfigurableApplicationContext ctx = new AnnotationConfigApplicationContext(BeanDefinitionRegistryPostProcessorConfig.class);
11841184
assertThat(ctx.getBean("myTestBean")).isInstanceOf(TestBean.class);
11851185
ctx.close();

0 commit comments

Comments
 (0)