Class org.springframework.context.annotation.ConfigurationClassPostProcessorTests

67

tests

0

failures

0

ignored

1.012s

duration

100%

successful

Tests

Test Duration Result
alreadyLoadedConfigurationClasses 0.049s passed
configurationClassesProcessedInCorrectOrder 0.002s passed
configurationClassesWithInvalidOverridingForProgrammaticCall 0.038s passed
configurationClassesWithValidOverridingForProgrammaticCall 0.024s passed
configurationIntrospectionOfInnerClassesWorksWithDotNameSyntax 0.012s passed
enhancementIsPresentBecauseSingletonSemanticsAreRespected 0.003s passed
genericsBasedInjection 0.009s passed
genericsBasedInjectionWithEarlyGenericsMatching 0.001s passed
genericsBasedInjectionWithEarlyGenericsMatchingAndRawFactoryMethod 0.001s passed
genericsBasedInjectionWithEarlyGenericsMatchingAndRawInstance 0.004s passed
genericsBasedInjectionWithEarlyGenericsMatchingOnCglibProxy 0.007s passed
genericsBasedInjectionWithEarlyGenericsMatchingOnJdkProxy 0.063s passed
genericsBasedInjectionWithFactoryBean 0.025s passed
genericsBasedInjectionWithImplTypeAtInjectionPoint 0.027s passed
genericsBasedInjectionWithLateGenericsMatching 0.002s passed
genericsBasedInjectionWithLateGenericsMatchingAndRawFactoryMethod 0.002s passed
genericsBasedInjectionWithLateGenericsMatchingAndRawInstance 0.002s passed
genericsBasedInjectionWithLateGenericsMatchingOnCglibProxy 0.010s passed
genericsBasedInjectionWithLateGenericsMatchingOnCglibProxyAndRawFactoryMethod 0.043s passed
genericsBasedInjectionWithLateGenericsMatchingOnCglibProxyAndRawInstance 0.009s passed
genericsBasedInjectionWithLateGenericsMatchingOnJdkProxy 0.008s passed
genericsBasedInjectionWithLateGenericsMatchingOnJdkProxyAndRawFactoryMethod 0.002s passed
genericsBasedInjectionWithLateGenericsMatchingOnJdkProxyAndRawInstance 0.027s passed
genericsBasedInjectionWithRawMatch 0.013s passed
genericsBasedInjectionWithScoped 0.022s passed
genericsBasedInjectionWithScopedProxy 0.005s passed
genericsBasedInjectionWithScopedProxyUsingAsm 0.036s passed
genericsBasedInjectionWithWildcardMatch 0.016s passed
genericsBasedInjectionWithWildcardWithExtendsMatch 0.012s passed
genericsBasedInjectionWithWildcardWithGenericExtendsMatch 0.016s passed
innerConfigurationClassesProcessedInCorrectOrder 0.038s passed
nestedConfigurationClassesProcessedInCorrectOrder 0.023s passed
postProcessorDoesNotOverrideRegularBeanDefinitions 0.005s passed
postProcessorDoesNotOverrideRegularBeanDefinitionsEvenWithScopedProxy 0.002s passed
postProcessorFailsOnImplicitOverrideIfOverridingIsNotAllowed 0.002s passed
postProcessorIntrospectsInheritedDefinitionsCorrectly 0.002s passed
postProcessorOverridesNonApplicationBeanDefinitions 0.015s passed
postProcessorWorksWithComposedComposedConfigurationWithAttributeOverridesUsingAsm 0.014s passed
postProcessorWorksWithComposedComposedConfigurationWithAttributeOverridesUsingReflection 0.011s passed
postProcessorWorksWithComposedConfigurationUsingAsm 0.014s passed
postProcessorWorksWithComposedConfigurationUsingReflection 0.008s passed
postProcessorWorksWithComposedConfigurationWithAttributeOverrideForBasePackageUsingAsm 0.009s passed
postProcessorWorksWithComposedConfigurationWithAttributeOverrideForBasePackageUsingReflection 0.009s passed
postProcessorWorksWithComposedConfigurationWithAttributeOverrideForExcludeFilterUsingAsm 0.008s passed
postProcessorWorksWithComposedConfigurationWithAttributeOverrideForExcludeFilterUsingReflection 0.006s passed
postProcessorWorksWithExtendedConfigurationWithAttributeOverrideForExcludesFilterUsingAsm 0.008s passed
postProcessorWorksWithExtendedConfigurationWithAttributeOverrideForExcludesFilterUsingReflection 0.008s passed
postProcessorWorksWithMetaComponentScanConfigurationWithAttributeOverridesSubclassUsingAsm 0.010s passed
postProcessorWorksWithMetaComponentScanConfigurationWithAttributeOverridesSubclassUsingReflection 0.010s passed
postProcessorWorksWithMetaComponentScanConfigurationWithAttributeOverridesUsingAsm 0.012s passed
postProcessorWorksWithMetaComponentScanConfigurationWithAttributeOverridesUsingReflection 0.008s passed
processingAllowedOnlyOncePerProcessorRegistryPair 0s passed
scopedProxyTargetMarkedAsNonAutowireCandidate 0.006s passed
testBeanDefinitionRegistryPostProcessorConfig 0.014s passed
testBeanLookupFromSameConfigurationClass 0.030s passed
testCircularDependency 0.005s passed
testCircularDependencyWithApplicationContext 0.024s passed
testCollectionInjectionFromSameConfigurationClass 0.020s passed
testConfigWithDefaultMethods 0.003s passed
testConfigWithDefaultMethodsUsingAsm 0.037s passed
testInjectionPointMatchForNarrowTargetReturnType 0.030s passed
testMapInjectionFromSameConfigurationClass 0.028s passed
testNameClashBetweenConfigurationClassAndBean 0.004s passed
testNullArgumentThroughBeanMethodCall 0.026s passed
testPrototypeArgumentThroughBeanMethodCall 0.023s passed
testSelfReferenceExclusionForFactoryMethodOnSameBean 0.016s passed
testSingletonArgumentThroughBeanMethodCall 0.034s passed

Standard output

16:45:36.983 [Test worker] WARN  org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'configurationClassPostProcessorTests.A': Unsatisfied dependency expressed through field 'z'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'configurationClassPostProcessorTests.AStrich': Unsatisfied dependency expressed through field 'b'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'b' defined in org.springframework.context.annotation.ConfigurationClassPostProcessorTests$A: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.ConfigurationClassPostProcessorTests$B]: Circular reference involving containing bean 'configurationClassPostProcessorTests.A' - consider declaring the factory method as static for independence from its containing instance. Factory method 'b' threw exception; nested exception is java.lang.NullPointerException: z is null
16:45:37.381 [Test worker] WARN  org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'myTestBean' defined in org.springframework.context.annotation.MyTestBean: Bean name derived from @Bean method 'myTestBean' clashes with bean name for containing configuration class; please make those names unique!