Fix header filter test. Improve aggregator-filter test configuration.

This commit is contained in:
Corneil du Plessis
2023-04-06 12:21:08 +02:00
parent c03ca7c0d1
commit b0b3f14992
3 changed files with 8 additions and 3 deletions

View File

@@ -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);
}
}
}

View File

@@ -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);