You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/11/19 04:06:22 UTC
[2/6] git commit: Try to fix the test error of
SSLContextParametersTest
Try to fix the test error of SSLContextParametersTest
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/29eafbc5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/29eafbc5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/29eafbc5
Branch: refs/heads/camel-2.12.x
Commit: 29eafbc506dc80d1a3d0a3e27e8f80370627026b
Parents: 6204c43
Author: Willem Jiang <wi...@gmail.com>
Authored: Tue Nov 19 10:22:08 2013 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Tue Nov 19 11:04:44 2013 +0800
----------------------------------------------------------------------
.../org/apache/camel/util/jsse/SSLContextParametersTest.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/29eafbc5/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 c72f44d..83656fc 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
@@ -540,7 +540,7 @@ public class SSLContextParametersTest extends AbstractJsseParametersTest {
filter.getInclude().clear();
filter.getExclude().clear();
- csp.getCipherSuite().add(controlEngine.getEnabledCipherSuites()[0]);
+ csp.getCipherSuite().add("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256");
filter.getInclude().add("TLS.*");
context = scp.createSSLContext();
engine = context.createSSLEngine();
@@ -753,18 +753,12 @@ public class SSLContextParametersTest extends AbstractJsseParametersTest {
}
protected void assertStartsWith(String[] values, String prefix) {
- if (values == null || values.length == 0) {
- return;
- }
for (String value : values) {
assertTrue(value.startsWith(prefix));
}
}
protected void assertStartsWith(Collection<String> values, String prefix) {
- if (values == null || values.size() == 0) {
- return;
- }
for (String value : values) {
assertTrue(value.startsWith(prefix));
}