Fix test case

This commit is contained in:
devender.kumar 2019-10-01 16:40:50 +02:00
parent 4015900366
commit b4e41095c1
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class ComponentScanAspectJFilterAppIntegrationTest {
public void whenAspectJFilterIsUsed_thenComponentScanShouldRegisterBeanMatchingAspectJCreteria() {
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(ComponentScanAspectJFilterApp.class);
List<String> beans = Arrays.stream(applicationContext.getBeanDefinitionNames())
.filter(bean -> !bean.contains("org.springframework") && !bean.contains("componentScanCustomFilterApp"))
.filter(bean -> !bean.contains("org.springframework") && !bean.contains("componentScanAspectJFilterApp"))
.collect(Collectors.toList());
assertThat(beans.size(), equalTo(1));
assertThat(beans.get(0), equalTo("elephant"));