Polishing
This commit is contained in:
parent
9df735b3ab
commit
345910591a
|
@ -318,7 +318,7 @@ extension API from JUnit Jupiter, which lets Spring provide dependency injection
|
||||||
constructors, test methods, and test lifecycle callback methods.
|
constructors, test methods, and test lifecycle callback methods.
|
||||||
|
|
||||||
Specifically, the `SpringExtension` can inject dependencies from the test's
|
Specifically, the `SpringExtension` can inject dependencies from the test's
|
||||||
`ApplicationContext` into into test constructors and methods that are annotated with
|
`ApplicationContext` into test constructors and methods that are annotated with
|
||||||
Spring's `@BeforeTransaction` and `@AfterTransaction` or JUnit's `@BeforeAll`,
|
Spring's `@BeforeTransaction` and `@AfterTransaction` or JUnit's `@BeforeAll`,
|
||||||
`@AfterAll`, `@BeforeEach`, `@AfterEach`, `@Test`, `@RepeatedTest`, `@ParameterizedTest`,
|
`@AfterAll`, `@BeforeEach`, `@AfterEach`, `@Test`, `@RepeatedTest`, `@ParameterizedTest`,
|
||||||
and others.
|
and others.
|
||||||
|
|
|
@ -152,11 +152,11 @@ public class AnnotationBeanNameGenerator implements BeanNameGenerator {
|
||||||
if (conventionBasedStereotypeCheckCache.add(annotationType) &&
|
if (conventionBasedStereotypeCheckCache.add(annotationType) &&
|
||||||
metaAnnotationTypes.contains(COMPONENT_ANNOTATION_CLASSNAME) && logger.isWarnEnabled()) {
|
metaAnnotationTypes.contains(COMPONENT_ANNOTATION_CLASSNAME) && logger.isWarnEnabled()) {
|
||||||
logger.warn("""
|
logger.warn("""
|
||||||
Support for convention-based stereotype names is deprecated and will \
|
Support for convention-based stereotype names is deprecated and will \
|
||||||
be removed in a future version of the framework. Please annotate the \
|
be removed in a future version of the framework. Please annotate the \
|
||||||
'value' attribute in @%s with @AliasFor(annotation=Component.class) \
|
'value' attribute in @%s with @AliasFor(annotation=Component.class) \
|
||||||
to declare an explicit alias for @Component's 'value' attribute."""
|
to declare an explicit alias for @Component's 'value' attribute."""
|
||||||
.formatted(annotationType));
|
.formatted(annotationType));
|
||||||
}
|
}
|
||||||
if (beanName != null && !currentName.equals(beanName)) {
|
if (beanName != null && !currentName.equals(beanName)) {
|
||||||
throw new IllegalStateException("Stereotype annotations suggest inconsistent " +
|
throw new IllegalStateException("Stereotype annotations suggest inconsistent " +
|
||||||
|
|
Loading…
Reference in New Issue