removes some deprecation-warnings

This commit is contained in:
sgaebel committed 2020-07-31 17:28:06 +02:00
1 parent dd9d4b1188
commit 4a495df63a
4 files changed
+11 -10

No files matched your search

@@ -67,6 +67,7 @@ public class YaCyDefaultServletTest {
* custom "CONNECTION_PROP_PROTOCOL" header indicates the protocol
*/
@Test
@SuppressWarnings("deprecation")
public void testGetContextCustomProtocolHeader() {
RequestHeader header = new RequestHeader();
header.put(HeaderFramework.HOST, "myhost.com:8443");
@@ -84,6 +85,7 @@ public class YaCyDefaultServletTest {
* custom "CONNECTION_PROP_PROTOCOL" indicates the protocol
*/
@Test
@SuppressWarnings("deprecation")
public void testGetContextDefaultPortCustomProtocolHeader() {
RequestHeader header = new RequestHeader();
header.put(HeaderFramework.HOST, "myhost.com");
@@ -99,7 +101,8 @@ public class YaCyDefaultServletTest {
/**
* getContext() : reverse proxy serving HTTPS, YaCy serving HTTP
*/
@Test
@Test
@SuppressWarnings("deprecation")
public void testGetContextReverseProxy() {
/* Different protocols : HTTPS on proxy, HTTP on peer */
RequestHeader header = new RequestHeader();