Fix header filter test. Improve aggregator-filter test configuration.
This commit is contained in:
@@ -21,6 +21,7 @@ import java.util.function.Function;
|
||||
import reactor.core.publisher.Flux;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.integration.aggregator.AggregatingMessageHandler;
|
||||
@@ -46,8 +47,10 @@ public abstract class AbstractAggregatorFunctionTests {
|
||||
protected AggregatingMessageHandler aggregatingMessageHandler;
|
||||
|
||||
@SpringBootApplication
|
||||
static class AggregatorFunctionTestApplication {
|
||||
|
||||
public static class AggregatorFunctionTestApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(AggregatorFunctionTestApplication.class, args);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ import org.springframework.integration.IntegrationMessageHeaderAccessor;
|
||||
import org.springframework.integration.store.SimpleMessageStore;
|
||||
import org.springframework.integration.support.MessageBuilder;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@@ -35,6 +36,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Artem Bilan
|
||||
* @author Corneil du Plessis
|
||||
*/
|
||||
@TestPropertySource(properties = "aggregator.message-store-type=simple")
|
||||
public class DefaultAggregatorTests extends AbstractAggregatorFunctionTests {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DefaultAggregatorTests.class);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user