# Class org.springframework.context.annotation.ComponentScanParserBeanDefinitionDefaultsTests

12 tests | 0 failures | 0 ignored | 4.944s duration

100%

successful

- Tests
- Standard output

## Tests

Test | Duration | Result
--- | --- | ---
testAutowireByName | 0.408s | passed
testAutowireByType | 0.294s | passed
testAutowireConstructor | 0.368s | passed
testAutowireNo | 0.445s | passed
testDefaultAutowire | 0.421s | passed
testDefaultDependencyCheck | 0.425s | passed
testDefaultInitAndDestroyMethodsDefined | 0.497s | passed
testDefaultInitAndDestroyMethodsNotDefined | 0.395s | passed
testDefaultLazyInit | 0.442s | passed
testDefaultNonExistingInitAndDestroyMethodsDefined | 0.462s | passed
testLazyInitFalse | 0.428s | passed
testLazyInitTrue | 0.359s | passed

## Standard output

    16:45:32.382 [Test worker] WARN  org.springframework.context.support.GenericApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'componentScanParserBeanDefinitionDefaultsTests.DefaultsTestBean' defined in file [D:\ideaworkspace\spring-source\spring-context\build\classes\java\test\org\springframework\context\annotation\ComponentScanParserBeanDefinitionDefaultsTests$DefaultsTestBean.class]: Unsatisfied dependency expressed through bean property 'propertyDependency1'; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.context.annotation.ComponentScanParserBeanDefinitionDefaultsTests$PropertyDependencyTestBean' available: expected single matching bean but found 2: org.springframework.context.annotation.ComponentScanParserBeanDefinitionDefaultsTests$PropertyDependencyTestBean#0,propertyDependency2