Fixed test on CI servers

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

Branch: refs/heads/camel-2.11.x
Commit: fef28ef0137da6f21774bda7e608cbd31a8f3fda
Parents: 8e294be
Author: Claus Ibsen <davscl...@apache.org>
Authored: Mon Nov 18 11:20:18 2013 +0100
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Mon Nov 18 11:20:45 2013 +0100

----------------------------------------------------------------------
 .../org/apache/camel/util/jsse/SSLContextParametersTest.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/fef28ef0/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 cecde3d..c72f44d 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
@@ -753,12 +753,18 @@ 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));
         }

Reply via email to