GH-9878: Fix ConcurrentModificationEx for SpringIntegrationTestExecutionListener
Fixes: #9878
Issue link: https://github.com/spring-projects/spring-integration/issues/9878
* `return Collections.unmodifiableList(this.autoStartupCandidates);` in the `MockIntegrationContext`
Signed-off-by: Alexander Hain <Alexander.hain@cloudflight.io>
[artem.bilan@broadcom.com Improve commit message]
Signed-off-by: Artem Bilan <artem.bilan@broadcom.com>
(cherry picked from commit 3d16e59f0b)
This commit is contained in:
committed by
Spring Builds
parent
0925a55500
commit
cfc5fd9bc6
@@ -19,6 +19,7 @@ package org.springframework.integration.test.context;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import reactor.core.publisher.Mono;
|
||||
@@ -59,6 +60,7 @@ import org.springframework.util.ObjectUtils;
|
||||
*
|
||||
* @author Artem Bilan
|
||||
* @author Yicheng Feng
|
||||
* @author Alexander Hain
|
||||
*
|
||||
* @since 5.0
|
||||
*
|
||||
@@ -111,7 +113,7 @@ public class MockIntegrationContext implements BeanPostProcessor, SmartInitializ
|
||||
}
|
||||
|
||||
List<AbstractEndpoint> getAutoStartupCandidates() {
|
||||
return this.autoStartupCandidates;
|
||||
return Collections.unmodifiableList(this.autoStartupCandidates);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user