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/000581e6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/000581e6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/000581e6 Branch: refs/heads/master Commit: 000581e67e8342fc8b84b6e51265413b92ef6d0b Parents: b8087c6 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:18 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/000581e6/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)); }