|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2018 the original author or authors. |
| 2 | + * Copyright 2002-2019 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -184,6 +184,20 @@ public void postProcessorWorksWithComposedConfigurationWithAttributeOverrideForE
|
184 | 184 | assertSupportForComposedAnnotationWithExclude(beanDefinition);
|
185 | 185 | }
|
186 | 186 |
|
| 187 | + @Test |
| 188 | + public void postProcessorWorksWithExtendedConfigurationWithAttributeOverrideForExcludesFilterUsingReflection() { |
| 189 | + RootBeanDefinition beanDefinition = new RootBeanDefinition( |
| 190 | + ExtendedConfigurationWithAttributeOverrideForExcludeFilter.class); |
| 191 | + assertSupportForComposedAnnotationWithExclude(beanDefinition); |
| 192 | + } |
| 193 | + |
| 194 | + @Test |
| 195 | + public void postProcessorWorksWithExtendedConfigurationWithAttributeOverrideForExcludesFilterUsingAsm() { |
| 196 | + RootBeanDefinition beanDefinition = new RootBeanDefinition( |
| 197 | + ExtendedConfigurationWithAttributeOverrideForExcludeFilter.class.getName()); |
| 198 | + assertSupportForComposedAnnotationWithExclude(beanDefinition); |
| 199 | + } |
| 200 | + |
187 | 201 | @Test
|
188 | 202 | public void postProcessorWorksWithComposedComposedConfigurationWithAttributeOverridesUsingReflection() {
|
189 | 203 | RootBeanDefinition beanDefinition = new RootBeanDefinition(
|
@@ -1515,6 +1529,15 @@ public static class ComposedConfigurationWithAttributeOverrideForBasePackage {
|
1515 | 1529 | public static class ComposedConfigurationWithAttributeOverrideForExcludeFilter {
|
1516 | 1530 | }
|
1517 | 1531 |
|
| 1532 | + @ComponentScan(basePackages = "org.springframework.context.annotation.componentscan.base", excludeFilters = {}) |
| 1533 | + public static class BaseConfigurationWithEmptyExcludeFilters { |
| 1534 | + } |
| 1535 | + |
| 1536 | + @ComponentScan(basePackages = "org.springframework.context.annotation.componentscan.simple", |
| 1537 | + excludeFilters = @ComponentScan.Filter(Component.class)) |
| 1538 | + public static class ExtendedConfigurationWithAttributeOverrideForExcludeFilter extends BaseConfigurationWithEmptyExcludeFilters { |
| 1539 | + } |
| 1540 | + |
1518 | 1541 | @ComposedConfigurationWithAttributeOverrides
|
1519 | 1542 | @Retention(RetentionPolicy.RUNTIME)
|
1520 | 1543 | @Target(ElementType.TYPE)
|
|
0 commit comments