From f6be741dba39ea62144047fcf9e071e106d4da41 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Wed, 2 Jun 2021 16:22:10 +0200 Subject: [PATCH] Fix test --- .../stream/function/SourceToFunctionsSupportTests.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/function/SourceToFunctionsSupportTests.java b/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/function/SourceToFunctionsSupportTests.java index fdd8729d2..494fae146 100644 --- a/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/function/SourceToFunctionsSupportTests.java +++ b/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/function/SourceToFunctionsSupportTests.java @@ -23,6 +23,7 @@ import java.util.function.Supplier; import org.junit.Rule; import org.junit.Test; +import org.junit.jupiter.api.BeforeEach; import org.junit.rules.ExpectedException; import reactor.core.publisher.Flux; @@ -56,6 +57,11 @@ public class SourceToFunctionsSupportTests { @Rule public ExpectedException expectedException = ExpectedException.none(); + @BeforeEach + public void before() { + System.clearProperty("spring.cloud.stream.function.definition"); + } + @Test public void testFunctionIsAppliedToExistingMessageSource() { try (ConfigurableApplicationContext context = new SpringApplicationBuilder(