This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 0e60c6a  CAMEL-13557: Fixed test to use property binding support as 
the old has removed the legacy JDK PropertyEditor in CAMEL-13566
0e60c6a is described below

commit 0e60c6ab9c0cfc014c1d133a43fcadd830cfc9e7
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sun May 26 11:16:41 2019 +0200

    CAMEL-13557: Fixed test to use property binding support as the old has 
removed the legacy JDK PropertyEditor in CAMEL-13566
---
 .../camel/component/hazelcast/HazelcastSedaConfigurationTest.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
 
b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
index fb23d04..659c7b4 100644
--- 
a/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
+++ 
b/components/camel-hazelcast/src/test/java/org/apache/camel/component/hazelcast/HazelcastSedaConfigurationTest.java
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.component.hazelcast;
 
+import org.apache.camel.PropertyBindingException;
 import org.apache.camel.ResolveEndpointFailedException;
 import org.apache.camel.component.hazelcast.seda.HazelcastSedaEndpoint;
 import org.apache.camel.test.junit4.CamelTestSupport;
@@ -82,7 +83,7 @@ public class HazelcastSedaConfigurationTest extends 
CamelTestSupport {
             context.getEndpoint("hazelcast-seda:foo?onErrorDelay=-1");
             fail("Should have thrown exception");
         } catch (ResolveEndpointFailedException e) {
-            assertTrue(e.getCause().getMessage().contains("onErrorDelay must 
be a positive number, was -1"));
+            assertIsInstanceOf(PropertyBindingException.class, e.getCause());
         }
     }
 

Reply via email to