flink-instrumentation/workspace/flink-1.4.1-instrumented/flink-1.4.1/flink-runtime/src/test/java/org/apache/flink/runtime/net/SSLUtilsTest.java
/**
	 * Tests if SSL Server Context is not created if SSL is disabled.
	 */
Tests if SSL Server Context is not created if SSL is disabled.
Tests if SSL Server Context is not created if SSL is disabled .
@Test
	public void testCreateSSLServerContextWithSSLDisabled() throws Exception {
		Configuration serverConfig = new Configuration();
		serverConfig.setBoolean(SecurityOptions.SSL_ENABLED, false);
		SSLContext serverContext = SSLUtils.createSSLServerContext(serverConfig);
		Assert.assertNull(serverContext);
	}
@ Test public void testCreateSSLServerContextWithSSLDisabled ( ) throws Exception { Configuration serverConfig = new Configuration ( ) ; serverConfig . setBoolean ( SecurityOptions . SSL_ENABLED , false ) ; SSLContext serverContext = SSLUtils . createSSLServerContext ( serverConfig ) ; Assert . assertNull ( serverContext ) ; }
Tests if SSL Server Context is not created if SSL is disabled.
Tests if SSL Server Context is not created if SSL is disabled .