File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
spring-integration-core/src/test/java/org/springframework/integration Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 5353import org .springframework .context .annotation .ConditionContext ;
5454import org .springframework .context .annotation .Conditional ;
5555import org .springframework .context .annotation .Configuration ;
56+ import org .springframework .context .annotation .FilterType ;
5657import org .springframework .context .annotation .ImportResource ;
5758import org .springframework .context .annotation .Lazy ;
5859import org .springframework .context .expression .EnvironmentAccessor ;
@@ -814,7 +815,10 @@ public void testAdvisedServiceActivator() {
814815 }
815816
816817 @ Configuration
817- @ ComponentScan
818+ @ ComponentScan (
819+ excludeFilters = @ ComponentScan .Filter (
820+ type = FilterType .ASSIGNABLE_TYPE ,
821+ classes = {ChildConfiguration .class , ContextConfiguration2 .class }))
818822 @ IntegrationComponentScan
819823 @ EnableIntegration
820824 // INT-3853
Original file line number Diff line number Diff line change 4545import org .springframework .context .annotation .Bean ;
4646import org .springframework .context .annotation .ComponentScan ;
4747import org .springframework .context .annotation .Configuration ;
48+ import org .springframework .context .annotation .FilterType ;
4849import org .springframework .context .annotation .Scope ;
4950import org .springframework .core .task .TaskExecutor ;
5051import org .springframework .integration .MessageDispatchingException ;
@@ -641,7 +642,16 @@ public MessageChannel foo() {
641642 }
642643
643644 @ Configuration
644- @ ComponentScan
645+ @ ComponentScan (
646+ excludeFilters = @ ComponentScan .Filter (
647+ type = FilterType .ASSIGNABLE_TYPE ,
648+ classes = {
649+ ContextConfiguration .class ,
650+ ContextConfiguration3 .class ,
651+ ContextConfiguration4 .class ,
652+ InterceptorContextConfiguration .class ,
653+ SupplierContextConfiguration1 .class ,
654+ SupplierContextConfiguration2 .class }))
645655 public static class ContextConfiguration2 {
646656
647657 @ Autowired
You can’t perform that action at this time.
0 commit comments