Support Java 14 (#3310)
* Support Java 14 * Provide changes to avoid deprecated Java API and have a compatibility back to Java 8 * Change affected test classes to JUnit 5 whenever it is possible * Ignore/Disable some TCP/IP tests which don't pass on Java 14 * Fix (some) TCP tests on JRE 14 * Fix SSL Handshake test - client side handshake is successful with java 14 - change the badClient cert to a badServer cert to force an error on the client side Co-authored-by: artembilan <raven666> Co-authored-by: Gary Russell <grussell@pivotal.io>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -147,7 +147,7 @@ public class HttpOutboundGatewayParserTests {
|
||||
assertThat(templateAccessor.getPropertyValue("errorHandler")).isEqualTo(errorHandlerBean);
|
||||
Object sendTimeout = new DirectFieldAccessor(
|
||||
handlerAccessor.getPropertyValue("messagingTemplate")).getPropertyValue("sendTimeout");
|
||||
assertThat(sendTimeout).isEqualTo(new Long("1234"));
|
||||
assertThat(sendTimeout).isEqualTo(1234L);
|
||||
Map<String, Expression> uriVariableExpressions =
|
||||
(Map<String, Expression>) handlerAccessor.getPropertyValue("uriVariableExpressions");
|
||||
assertThat(uriVariableExpressions.size()).isEqualTo(1);
|
||||
|
||||
@@ -89,7 +89,7 @@ public class CrossOriginTests {
|
||||
assertThat(config.getAllowCredentials()).isTrue();
|
||||
assertThat(config.getAllowedHeaders().toArray()).isEqualTo(new String[] { "*" });
|
||||
assertThat(config.getExposedHeaders()).isEmpty();
|
||||
assertThat(config.getMaxAge()).isEqualTo(new Long(1800));
|
||||
assertThat(config.getMaxAge()).isEqualTo(1800L);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -103,7 +103,7 @@ public class CrossOriginTests {
|
||||
.isEqualTo(new String[] { "https://site1.com", "https://site2.com" });
|
||||
assertThat(config.getAllowedHeaders().toArray()).isEqualTo(new String[] { "header1", "header2" });
|
||||
assertThat(config.getExposedHeaders().toArray()).isEqualTo(new String[] { "header3", "header4" });
|
||||
assertThat(config.getMaxAge()).isEqualTo(new Long(123));
|
||||
assertThat(config.getMaxAge()).isEqualTo(123L);
|
||||
assertThat(config.getAllowCredentials()).isEqualTo(false);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public class CrossOriginTests {
|
||||
assertThat(config.getAllowCredentials()).isTrue();
|
||||
assertThat(config.getAllowedHeaders().toArray()).isEqualTo(new String[] { "*" });
|
||||
assertThat(config.getExposedHeaders()).isEmpty();
|
||||
assertThat(config.getMaxAge()).isEqualTo(new Long(1800));
|
||||
assertThat(config.getMaxAge()).isEqualTo(1800L);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user