|
|
@ -159,8 +159,8 @@ public class ComponentScanAnnotationIntegrationTests { |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void withCustomTypeFilter() { |
|
|
|
public void withCustomTypeFilter() { |
|
|
|
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(ComponentScanWithCustomTypeFilter.class); |
|
|
|
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(ComponentScanWithCustomTypeFilter.class); |
|
|
|
assertFalse(ctx.getDefaultListableBeanFactory().containsSingleton("kustomBean")); |
|
|
|
assertFalse(ctx.getDefaultListableBeanFactory().containsSingleton("componentScanParserTests.KustomAnnotationAutowiredBean")); |
|
|
|
KustomAnnotationAutowiredBean testBean = ctx.getBean("kustomBean", KustomAnnotationAutowiredBean.class); |
|
|
|
KustomAnnotationAutowiredBean testBean = ctx.getBean("componentScanParserTests.KustomAnnotationAutowiredBean", KustomAnnotationAutowiredBean.class); |
|
|
|
assertThat(testBean.getDependency(), notNullValue()); |
|
|
|
assertThat(testBean.getDependency(), notNullValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|