parent
c1d149591a
commit
47006eeff1
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,6 @@ public class ComponentScanParserTests {
|
||||||
* Intentionally spelling "custom" with a "k" since there are numerous
|
* Intentionally spelling "custom" with a "k" since there are numerous
|
||||||
* classes in this package named *Custom*.
|
* classes in this package named *Custom*.
|
||||||
*/
|
*/
|
||||||
@Component("kustomBean")
|
|
||||||
public static class KustomAnnotationAutowiredBean {
|
public static class KustomAnnotationAutowiredBean {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue