diff --git a/server/test/com/mirth/connect/util/MirthSSLUtilTest.java b/server/test/com/mirth/connect/util/MirthSSLUtilTest.java index 673a4fd84a..c6113e0bde 100644 --- a/server/test/com/mirth/connect/util/MirthSSLUtilTest.java +++ b/server/test/com/mirth/connect/util/MirthSSLUtilTest.java @@ -29,14 +29,9 @@ public void testEnabledProtocols() throws Exception { String[] enabledClientProtocols = MirthSSLUtil.getEnabledHttpsProtocols(defaultClientProtocols); String[] enabledServerProtocols = MirthSSLUtil.getEnabledHttpsProtocols(defaultServerProtocols); - // TLSv1.3 supported in Java 11+ - if (getJavaVersion() >= 11) { - assertTrue(ArrayUtils.contains(enabledClientProtocols, "TLSv1.3")); - assertTrue(ArrayUtils.contains(enabledServerProtocols, "TLSv1.3")); - } else { - assertFalse(ArrayUtils.contains(enabledClientProtocols, "TLSv1.3")); - assertFalse(ArrayUtils.contains(enabledServerProtocols, "TLSv1.3")); - } + // TLSv1.3 supported in Java 8u261+ + assertTrue(ArrayUtils.contains(enabledClientProtocols, "TLSv1.3")); + assertTrue(ArrayUtils.contains(enabledServerProtocols, "TLSv1.3")); } @Test @@ -47,12 +42,8 @@ public void testEnabledCipherSuites() throws Exception { String[] enabledClientCipherSuites = MirthSSLUtil.getEnabledHttpsCipherSuites(defaultClientCipherSuites); - // TLS_AES_256_GCM_SHA384 supported in Java 11+ - if (getJavaVersion() >= 11) { - assertTrue(ArrayUtils.contains(enabledClientCipherSuites, "TLS_AES_256_GCM_SHA384")); - } else { - assertFalse(ArrayUtils.contains(enabledClientCipherSuites, "TLS_AES_256_GCM_SHA384")); - } + // TLS_AES_256_GCM_SHA384 supported in Java 8u261+ + assertTrue(ArrayUtils.contains(enabledClientCipherSuites, "TLS_AES_256_GCM_SHA384")); } private int getJavaVersion() {