org.springframework.context.annotation.ComponentScanParserTests.KustomAnnotationAutowiredBean Java Examples

The following examples show how to use org.springframework.context.annotation.ComponentScanParserTests.KustomAnnotationAutowiredBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ComponentScanAnnotationIntegrationTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Test
public void withCustomTypeFilter() {
	AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(ComponentScanWithCustomTypeFilter.class);
	assertFalse(ctx.getDefaultListableBeanFactory().containsSingleton("componentScanParserTests.KustomAnnotationAutowiredBean"));
	KustomAnnotationAutowiredBean testBean = ctx.getBean("componentScanParserTests.KustomAnnotationAutowiredBean", KustomAnnotationAutowiredBean.class);
	assertThat(testBean.getDependency(), notNullValue());
}
 
Example #2
Source File: ComponentScanAnnotationIntegrationTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Test
public void withCustomTypeFilter() {
	AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(ComponentScanWithCustomTypeFilter.class);
	assertFalse(ctx.getDefaultListableBeanFactory().containsSingleton("componentScanParserTests.KustomAnnotationAutowiredBean"));
	KustomAnnotationAutowiredBean testBean = ctx.getBean("componentScanParserTests.KustomAnnotationAutowiredBean", KustomAnnotationAutowiredBean.class);
	assertThat(testBean.getDependency(), notNullValue());
}
 
Example #3
Source File: ComponentScanAnnotationIntegrationTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Test
public void withCustomTypeFilter() {
	AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(ComponentScanWithCustomTypeFilter.class);
	assertFalse(ctx.getDefaultListableBeanFactory().containsSingleton("componentScanParserTests.KustomAnnotationAutowiredBean"));
	KustomAnnotationAutowiredBean testBean = ctx.getBean("componentScanParserTests.KustomAnnotationAutowiredBean", KustomAnnotationAutowiredBean.class);
	assertThat(testBean.getDependency(), notNullValue());
}
 
Example #4
Source File: ComponentScanAnnotationIntegrationTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
public ComponentScanParserTests.KustomAnnotationAutowiredBean testBean() {
	return new ComponentScanParserTests.KustomAnnotationAutowiredBean();
}
 
Example #5
Source File: ComponentScanAnnotationIntegrationTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
public ComponentScanParserTests.KustomAnnotationAutowiredBean testBean() {
	return new ComponentScanParserTests.KustomAnnotationAutowiredBean();
}
 
Example #6
Source File: ComponentScanAnnotationIntegrationTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
public ComponentScanParserTests.KustomAnnotationAutowiredBean testBean() {
	return new ComponentScanParserTests.KustomAnnotationAutowiredBean();
}