From 1607f1db0bccce2d1a12102cc4a190356e8962e1 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 15 Nov 2019 10:50:28 +0100 Subject: [PATCH] Fix Checkstyle nohttp violation --- .../feed/RssChannelHttpMessageConverterTests.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/spring-web/src/test/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverterTests.java b/spring-web/src/test/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverterTests.java index a720f16d3b..928c2cb9e1 100644 --- a/spring-web/src/test/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverterTests.java +++ b/spring-web/src/test/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverterTests.java @@ -25,7 +25,6 @@ import java.util.List; import com.rometools.rome.feed.rss.Channel; import com.rometools.rome.feed.rss.Item; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.http.MediaType; @@ -41,17 +40,9 @@ import static org.assertj.core.api.Assertions.assertThat; */ public class RssChannelHttpMessageConverterTests { - private static final MediaType RSS_XML_UTF8 = - new MediaType(MediaType.APPLICATION_RSS_XML, StandardCharsets.UTF_8); + private static final MediaType RSS_XML_UTF8 = new MediaType(MediaType.APPLICATION_RSS_XML, StandardCharsets.UTF_8); - - private RssChannelHttpMessageConverter converter; - - - @BeforeEach - public void setUp() { - converter = new RssChannelHttpMessageConverter(); - } + private final RssChannelHttpMessageConverter converter = new RssChannelHttpMessageConverter(); @Test @@ -141,7 +132,7 @@ public class RssChannelHttpMessageConverterTests { public void writeOtherContentTypeParameters() throws IOException { Channel channel = new Channel("rss_2.0"); channel.setTitle("title"); - channel.setLink("http://example.com"); + channel.setLink("https://example.com"); channel.setDescription("description"); MockHttpOutputMessage message = new MockHttpOutputMessage(); -- GitLab