Class org.springframework.beans.factory.xml.QualifierAnnotationTests
Tests
| Test |
Duration |
Result |
| testInterfaceWithOneQualifiedFactoryAndOneQualifiedBean |
0.016s |
passed |
| testNonQualifiedFieldFails |
0.031s |
passed |
| testQualifiedByAlias |
0.025s |
passed |
| testQualifiedByAnnotation |
0.031s |
passed |
| testQualifiedByAnnotationValue |
0.029s |
passed |
| testQualifiedByAttributesFailsWithoutCustomQualifierRegistered |
0.032s |
passed |
| testQualifiedByAttributesWithCustomQualifierRegistered |
0.028s |
passed |
| testQualifiedByBeanName |
0.031s |
passed |
| testQualifiedByCustomValue |
0.076s |
passed |
| testQualifiedByFieldName |
0.041s |
passed |
| testQualifiedByParameterName |
0.041s |
passed |
| testQualifiedByParentValue |
0.030s |
passed |
| testQualifiedByValue |
0.030s |
passed |
Standard output
16:45:13.399 [Test worker] WARN org.springframework.context.support.StaticApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'testBean': Unsatisfied dependency expressed through field 'anonymous'; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.xml.QualifierAnnotationTests$Person' available: expected single matching bean but found 6: larryBean,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#0,org.springframework.beans.factory.xml.QualifierAnnotationTests$SpecialPerson#0,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#1,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#2,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#3
16:45:13.546 [Test worker] WARN org.springframework.context.support.StaticApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'testBean': Unsatisfied dependency expressed through field 'moeSenior'; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.beans.factory.xml.QualifierAnnotationTests$Person' available: expected single matching bean but found 6: larryBean,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#0,org.springframework.beans.factory.xml.QualifierAnnotationTests$SpecialPerson#0,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#1,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#2,org.springframework.beans.factory.xml.QualifierAnnotationTests$Person#3