Fix failed tests according to new SF requirements

This commit is contained in:
Artem Bilan
2023-08-14 09:55:38 -04:00
parent 62b60cfe85
commit 92fb0d3bc8
2 changed files with 16 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.expression.EnvironmentAccessor;
@@ -814,7 +815,10 @@ public class EnableIntegrationTests {
}
@Configuration
@ComponentScan
@ComponentScan(
excludeFilters = @ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
classes = {ChildConfiguration.class, ContextConfiguration2.class}))
@IntegrationComponentScan
@EnableIntegration
// INT-3853

View File

@@ -45,6 +45,7 @@ import org.springframework.context.annotation.AnnotationConfigApplicationContext
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.Scope;
import org.springframework.core.task.TaskExecutor;
import org.springframework.integration.MessageDispatchingException;
@@ -641,7 +642,16 @@ public class IntegrationFlowTests {
}
@Configuration
@ComponentScan
@ComponentScan(
excludeFilters = @ComponentScan.Filter(
type = FilterType.ASSIGNABLE_TYPE,
classes = {
ContextConfiguration.class,
ContextConfiguration3.class,
ContextConfiguration4.class,
InterceptorContextConfiguration.class,
SupplierContextConfiguration1.class,
SupplierContextConfiguration2.class}))
public static class ContextConfiguration2 {
@Autowired