Fix test case
This commit is contained in:
parent
4015900366
commit
b4e41095c1
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue