Skip to content

Commit 92fb0d3

Browse files
committed
Fix failed tests according to new SF requirements
1 parent 62b60cf commit 92fb0d3

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

spring-integration-core/src/test/java/org/springframework/integration/configuration/EnableIntegrationTests.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import org.springframework.context.annotation.ConditionContext;
5454
import org.springframework.context.annotation.Conditional;
5555
import org.springframework.context.annotation.Configuration;
56+
import org.springframework.context.annotation.FilterType;
5657
import org.springframework.context.annotation.ImportResource;
5758
import org.springframework.context.annotation.Lazy;
5859
import 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

spring-integration-core/src/test/java/org/springframework/integration/dsl/flows/IntegrationFlowTests.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import org.springframework.context.annotation.Bean;
4646
import org.springframework.context.annotation.ComponentScan;
4747
import org.springframework.context.annotation.Configuration;
48+
import org.springframework.context.annotation.FilterType;
4849
import org.springframework.context.annotation.Scope;
4950
import org.springframework.core.task.TaskExecutor;
5051
import 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

0 commit comments

Comments
 (0)