From 735d42048c7b7dd326deb93df84ddd9e5bd65b70 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Wed, 19 Oct 2022 15:09:32 -0400 Subject: [PATCH] GH-373: Re-enable aggregator tests (#377) Fixes https://github.com/spring-cloud/stream-applications/issues/373 The fix in Spring Integration has made it into the latest SNAPSHOT. See more info in the linked issue * Update to the latest Testcontainers: it does not require credential for pull command any more * Remove obsolete `MessageStoreType.GEMFIRE` * Add `syntax` to ignore missed javadocs on public methods --- .../cloud/fn/aggregator/AggregatorFunctionProperties.java | 2 -- .../CustomPropsAndMongoMessageStoreAggregatorTests.java | 2 -- .../cloud/fn/aggregator/DefaultAggregatorTests.java | 2 -- .../cloud/fn/aggregator/JdbcMessageStoreAggregatorTests.java | 2 -- stream-applications-build/pom.xml | 3 ++- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/functions/function/aggregator-function/src/main/java/org/springframework/cloud/fn/aggregator/AggregatorFunctionProperties.java b/functions/function/aggregator-function/src/main/java/org/springframework/cloud/fn/aggregator/AggregatorFunctionProperties.java index 05b4003c..0f41ff62 100644 --- a/functions/function/aggregator-function/src/main/java/org/springframework/cloud/fn/aggregator/AggregatorFunctionProperties.java +++ b/functions/function/aggregator-function/src/main/java/org/springframework/cloud/fn/aggregator/AggregatorFunctionProperties.java @@ -117,8 +117,6 @@ public class AggregatorFunctionProperties { static final String REDIS = "redis"; - static final String GEMFIRE = "gemfire"; - } } diff --git a/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/CustomPropsAndMongoMessageStoreAggregatorTests.java b/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/CustomPropsAndMongoMessageStoreAggregatorTests.java index 34be5d9d..d876303f 100644 --- a/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/CustomPropsAndMongoMessageStoreAggregatorTests.java +++ b/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/CustomPropsAndMongoMessageStoreAggregatorTests.java @@ -19,7 +19,6 @@ package org.springframework.cloud.fn.aggregator; import java.time.Duration; import java.util.List; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; import reactor.test.StepVerifier; @@ -47,7 +46,6 @@ import static org.assertj.core.api.Assertions.assertThat; "aggregator.message-store-entity=aggregatorTest" }) @AutoConfigureDataMongo -@Disabled public class CustomPropsAndMongoMessageStoreAggregatorTests extends AbstractAggregatorFunctionTests implements MongoDbTestContainerSupport { diff --git a/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/DefaultAggregatorTests.java b/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/DefaultAggregatorTests.java index bde36e00..32a8e997 100644 --- a/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/DefaultAggregatorTests.java +++ b/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/DefaultAggregatorTests.java @@ -19,7 +19,6 @@ package org.springframework.cloud.fn.aggregator; import java.time.Duration; import java.util.List; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; import reactor.test.StepVerifier; @@ -35,7 +34,6 @@ import static org.assertj.core.api.Assertions.assertThat; * @author Artem Bilan * @author Corneil du Plessis */ -@Disabled public class DefaultAggregatorTests extends AbstractAggregatorFunctionTests { @Test diff --git a/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/JdbcMessageStoreAggregatorTests.java b/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/JdbcMessageStoreAggregatorTests.java index 50bf9c7d..d009270f 100644 --- a/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/JdbcMessageStoreAggregatorTests.java +++ b/functions/function/aggregator-function/src/test/java/org/springframework/cloud/fn/aggregator/JdbcMessageStoreAggregatorTests.java @@ -19,7 +19,6 @@ package org.springframework.cloud.fn.aggregator; import java.time.Duration; import java.util.List; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import reactor.core.publisher.Flux; import reactor.test.StepVerifier; @@ -37,7 +36,6 @@ import static org.assertj.core.api.Assertions.assertThat; * @author Corneil du Plessis */ @TestPropertySource(properties = "aggregator.message-store-type=jdbc") -@Disabled public class JdbcMessageStoreAggregatorTests extends AbstractAggregatorFunctionTests { @Test diff --git a/stream-applications-build/pom.xml b/stream-applications-build/pom.xml index 7d033e73..b1c586b6 100644 --- a/stream-applications-build/pom.xml +++ b/stream-applications-build/pom.xml @@ -49,7 +49,7 @@ 4.0.0-SNAPSHOT 4.0.0-SNAPSHOT 4.0.0-SNAPSHOT - 1.16.3 + 1.17.5 2.22.2 5.13.2 @@ -135,6 +135,7 @@ true + syntax