From 76d8e97614c3dacbfa3e5e56cae2646b1d081d07 Mon Sep 17 00:00:00 2001 From: Oleg Zhurakousky Date: Thu, 25 Aug 2022 19:48:08 +0200 Subject: [PATCH] Disabling temporary endpoint test due to boot changes --- .../cloud/stream/config/BinderPropertiesTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/BinderPropertiesTests.java b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/BinderPropertiesTests.java index 1cda1069b..78c3ae445 100644 --- a/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/BinderPropertiesTests.java +++ b/core/spring-cloud-stream/src/test/java/org/springframework/cloud/stream/config/BinderPropertiesTests.java @@ -20,12 +20,10 @@ import java.util.Collections; import java.util.Map; import java.util.Properties; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.boot.actuate.context.properties.ConfigurationPropertiesReportEndpoint; import org.springframework.boot.actuate.context.properties.ConfigurationPropertiesReportEndpoint.ContextConfigurationProperties; +import org.springframework.boot.actuate.endpoint.Show; import org.springframework.context.support.StaticApplicationContext; import static org.assertj.core.api.Assertions.assertThat; @@ -41,8 +39,8 @@ import static org.assertj.core.api.Assertions.assertThat; public class BinderPropertiesTests { @SuppressWarnings("unchecked") - @Test - @Disabled + //@Test + //@Disabled void testSerializationWithNonStringValues() { StaticApplicationContext context = new StaticApplicationContext(); DefaultListableBeanFactory bf = (DefaultListableBeanFactory) context @@ -60,7 +58,9 @@ public class BinderPropertiesTests { // using Spring Boot class to ensure that reliance on the same ObjectMapper // configuration - ConfigurationPropertiesReportEndpoint endpoint = new ConfigurationPropertiesReportEndpoint(); + + + ConfigurationPropertiesReportEndpoint endpoint = new ConfigurationPropertiesReportEndpoint(Collections.emptyList(), Show.ALWAYS); endpoint.setApplicationContext(context); ContextConfigurationProperties configurationProperties = endpoint