Skip to content
Permalink
Browse files
Unnecessary code
  • Loading branch information
sebbASF committed Jul 26, 2021
1 parent 271ba48 commit e171dd64e62c912ef349a9384c2ee7750a369fd4
Showing 1 changed file with 0 additions and 14 deletions.
@@ -77,17 +77,6 @@ public class FTPSClientTest {

private static final boolean IMPLICIT = false;

private static String TlsProtocols;

@AfterClass
public static void afterClass() {
if (TlsProtocols == null) {
System.getProperties().remove(JDK_TLS_CLIENT_PROTOCOLS);
} else {
System.setProperty(JDK_TLS_CLIENT_PROTOCOLS, TlsProtocols);
}
}

/**
* Returns the test directory as a String.
*
@@ -99,8 +88,6 @@ private static String getTestHomeDirectory() {

@BeforeClass
public static void setUpClass() throws Exception {
TlsProtocols = System.getProperty(JDK_TLS_CLIENT_PROTOCOLS);
//System.setProperty(JDK_TLS_CLIENT_PROTOCOLS, "TLSv1");
setUpClass(IMPLICIT);
}

@@ -140,7 +127,6 @@ private synchronized static void setUpClass(final boolean implicit) throws FtpEx
Assert.assertTrue(keyStoreFile.toString(), keyStoreFile.exists());
sllConfigFactory.setKeystoreFile(keyStoreFile);
sllConfigFactory.setKeystorePassword("password");
sllConfigFactory.setSslProtocol("TLSv1.2");

// set the SSL configuration for the listener
factory.setSslConfiguration(sllConfigFactory.createSslConfiguration());

0 comments on commit e171dd6

Please sign in to comment.