Update ComponentScanAssignableTypeFilterAppIntegrationTest.java (#8045)
This commit is contained in:
parent
dd9a7593c1
commit
ee1fc18df0
|
@ -19,7 +19,7 @@ import static org.hamcrest.CoreMatchers.*;
|
|||
public class ComponentScanAssignableTypeFilterAppIntegrationTest {
|
||||
|
||||
@Test
|
||||
public void whenAssignableTypeFilterIsUsed_thenComponentScanShouldRegisterBeanOfAssignableTypeAndItsSubClass() {
|
||||
public void whenAssignableTypeFilterIsUsed_thenComponentScanShouldRegisterBean() {
|
||||
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(ComponentScanAssignableTypeFilterApp.class);
|
||||
List<String> beans = Arrays.stream(applicationContext.getBeanDefinitionNames())
|
||||
.filter(bean -> !bean.contains("org.springframework") && !bean.contains("componentScanAssignableTypeFilterApp"))
|
||||
|
|
Loading…
Reference in New Issue