# Class org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests

22 tests | 0 failures | 0 ignored | 0.161s duration

100%

successful

- Tests
- Standard output

## Tests

Test | Duration | Result
--- | --- | ---
testAutowiredConstructorArgumentResolvesQualifiedCandidate | 0.006s | passed
testAutowiredConstructorArgumentWithMultipleNonQualifiedCandidates | 0.002s | passed
testAutowiredConstructorArgumentWithSingleNonQualifiedCandidate | 0.003s | passed
testAutowiredConstructorArgumentWithSingleQualifiedCandidate | 0.015s | passed
testAutowiredFieldDoesNotResolveCandidateWithDefaultValueAndConflictingValueOnBeanDefinition | 0.003s | passed
testAutowiredFieldDoesNotResolveWithBaseQualifierAndNonDefaultValueAndMultipleMatchingCandidates | 0.007s | passed
testAutowiredFieldDoesNotResolveWithMultipleQualifierValuesAndConflictingDefaultValue | 0.004s | passed
testAutowiredFieldDoesNotResolveWithMultipleQualifierValuesAndMultipleMatchingCandidates | 0.005s | passed
testAutowiredFieldResolvesQualifiedCandidate | 0.003s | passed
testAutowiredFieldResolvesQualifiedCandidateWithDefaultValueAndNoValueOnBeanDefinition | 0.011s | passed
testAutowiredFieldResolvesWithDefaultValueAndExplicitDefaultValueOnBeanDefinition | 0.006s | passed
testAutowiredFieldResolvesWithMultipleQualifierValues | 0.005s | passed
testAutowiredFieldResolvesWithMultipleQualifierValuesAndExplicitDefaultValue | 0.012s | passed
testAutowiredFieldWithMultipleNonQualifiedCandidates | 0.004s | passed
testAutowiredFieldWithSingleNonQualifiedCandidate | 0.003s | passed
testAutowiredFieldWithSingleQualifiedCandidate | 0.017s | passed
testAutowiredMethodParameterResolvesQualifiedCandidate | 0.005s | passed
testAutowiredMethodParameterWithMultipleNonQualifiedCandidates | 0.004s | passed
testAutowiredMethodParameterWithSingleNonQualifiedCandidate | 0.003s | passed
testAutowiredMethodParameterWithSingleQualifiedCandidate | 0.013s | passed
testAutowiredMethodParameterWithStaticallyQualifiedCandidate | 0.019s | passed
testAutowiredMethodParameterWithStaticallyQualifiedCandidateAmongOthers | 0.011s | passed

## Standard output

    16:45:12.806 [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 'autowired': Unsatisfied dependency expressed through field 'person'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Inject(), @org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifier()}
    16:45:12.822 [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 'autowired': Unsatisfied dependency expressed through field 'person'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Inject(), @org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifierWithMultipleAttributes(value=default, number=123)}
    16:45:12.872 [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 'autowired': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifier()}
    16:45:12.883 [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 'autowired': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Named(value=juergen)}
    16:45:12.886 [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 'autowired': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifier()}
    16:45:12.889 [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 'autowired': Unsatisfied dependency expressed through method 'setPerson' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifier()}
    16:45:12.893 [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 'autowired': Unsatisfied dependency expressed through field 'person'; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected single matching bean but found 2: juergen,mark
    16:45:12.897 [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 'autowired': Unsatisfied dependency expressed through method 'setPerson' parameter 0; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifier()}
    16:45:12.936 [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 'autowired': Unsatisfied dependency expressed through field 'person'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Inject(), @org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifier()}
    16:45:12.950 [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 'autowired': Unsatisfied dependency expressed through field 'person'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$Person' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.inject.Inject(), @org.springframework.beans.factory.support.InjectAnnotationAutowireContextTests$TestQualifierWithDefaultValue(value=default)}