You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2019/06/03 19:39:16 UTC
[sling-org-apache-sling-servlet-helpers] branch master updated:
cosmetic: suppress deprecation warnings in unit tests
This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlet-helpers.git
The following commit(s) were added to refs/heads/master by this push:
new 1018693 cosmetic: suppress deprecation warnings in unit tests
1018693 is described below
commit 10186936aff14580fb9dd457d61d89ea5f201875
Author: sseifert <ss...@pro-vision.de>
AuthorDate: Mon Jun 3 21:39:05 2019 +0200
cosmetic: suppress deprecation warnings in unit tests
---
.../apache/sling/servlethelpers/MockSlingHttpServletResponseTest.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletResponseTest.java b/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletResponseTest.java
index 3c4972d..51c8df7 100644
--- a/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletResponseTest.java
+++ b/src/test/java/org/apache/sling/servlethelpers/MockSlingHttpServletResponseTest.java
@@ -118,6 +118,7 @@ public class MockSlingHttpServletResponseTest {
}
@Test
+ @SuppressWarnings("deprecation")
public void testSendErrorWithMEssage() throws Exception {
response.sendError(HttpServletResponse.SC_NOT_FOUND, "my error message");
assertEquals(HttpServletResponse.SC_NOT_FOUND, response.getStatus());
@@ -137,6 +138,7 @@ public class MockSlingHttpServletResponseTest {
}
@Test
+ @SuppressWarnings("deprecation")
public void testSetStatusWithMEssage() throws Exception {
response.setStatus(HttpServletResponse.SC_ACCEPTED, "my status message");
assertEquals(HttpServletResponse.SC_ACCEPTED, response.getStatus());