camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhira...@apache.org
Subject [1/2] git commit: CAMEL-7940: updated tests for client SSP and server SSP
Date Thu, 23 Oct 2014 05:09:17 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.13.x d3ff09280 -> da74b3150


CAMEL-7940: updated tests for client SSP and server SSP


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6eaa4af7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6eaa4af7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6eaa4af7

Branch: refs/heads/camel-2.13.x
Commit: 6eaa4af7d8def46f4b9a29d744672d559e063f43
Parents: d3ff092
Author: Dhiraj Bokde <dhirajsb@yahoo.com>
Authored: Wed Oct 22 21:08:07 2014 -0700
Committer: Dhiraj Bokde <dhirajsb@yahoo.com>
Committed: Wed Oct 22 22:09:05 2014 -0700

----------------------------------------------------------------------
 .../apache/camel/util/jsse/SSLContextParametersTest.java  | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6eaa4af7/camel-core/src/test/java/org/apache/camel/util/jsse/SSLContextParametersTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/util/jsse/SSLContextParametersTest.java
b/camel-core/src/test/java/org/apache/camel/util/jsse/SSLContextParametersTest.java
index 99bd6fd..0d2258d 100644
--- a/camel-core/src/test/java/org/apache/camel/util/jsse/SSLContextParametersTest.java
+++ b/camel-core/src/test/java/org/apache/camel/util/jsse/SSLContextParametersTest.java
@@ -187,7 +187,11 @@ public class SSLContextParametersTest extends AbstractJsseParametersTest
{
         SSLEngine engine = context.createSSLEngine();
         SSLSocket socket = (SSLSocket) context.getSocketFactory().createSocket();
         SSLServerSocket serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
-        
+
+        assertStartsWith(engine.getEnabledProtocols(), "TLS");
+        assertStartsWith(socket.getEnabledProtocols(), "TLS");
+        assertStartsWith(serverSocket.getEnabledProtocols(), "TLS");
+
         assertTrue(Arrays.equals(controlEngine.getEnabledCipherSuites(), engine.getEnabledCipherSuites()));
         assertTrue(Arrays.equals(controlSocket.getEnabledCipherSuites(), socket.getEnabledCipherSuites()));
         assertTrue(Arrays.equals(this.getDefaultCipherSuiteIncludes(controlServerSocket.getSupportedCipherSuites()),
serverSocket.getEnabledCipherSuites()));
@@ -323,6 +327,10 @@ public class SSLContextParametersTest extends AbstractJsseParametersTest
{
         SSLSocket socket = (SSLSocket) context.getSocketFactory().createSocket();
         SSLServerSocket serverSocket = (SSLServerSocket) context.getServerSocketFactory().createServerSocket();
         
+        assertStartsWith(engine.getEnabledProtocols(), "TLS");
+        assertStartsWith(socket.getEnabledProtocols(), "TLS");
+        assertStartsWith(serverSocket.getEnabledProtocols(), "TLS");
+
         assertTrue(Arrays.equals(controlEngine.getEnabledCipherSuites(), engine.getEnabledCipherSuites()));
         assertTrue(Arrays.equals(controlSocket.getEnabledCipherSuites(), socket.getEnabledCipherSuites()));
         assertTrue(Arrays.equals(this.getDefaultCipherSuiteIncludes(controlServerSocket.getSupportedCipherSuites()),
serverSocket.getEnabledCipherSuites()));


Mime
View raw message