camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] camel git commit: Fixed test
Date Sat, 06 Feb 2016 09:06:05 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 6a5a4b483 -> 355adb6b9
  refs/heads/master 510f6702c -> c4957ca76


Fixed test


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

Branch: refs/heads/master
Commit: c4957ca765fe855980aaf73e52bf33fdcba20180
Parents: 510f670
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat Feb 6 10:04:36 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat Feb 6 10:04:36 2016 +0100

----------------------------------------------------------------------
 .../org/apache/camel/processor/jpa/JpaProducerNoBodyTest.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/c4957ca7/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaProducerNoBodyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaProducerNoBodyTest.java
b/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaProducerNoBodyTest.java
index 885f4db..3e5e9d6 100644
--- a/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaProducerNoBodyTest.java
+++ b/components/camel-jpa/src/test/java/org/apache/camel/processor/jpa/JpaProducerNoBodyTest.java
@@ -35,8 +35,7 @@ public class JpaProducerNoBodyTest extends AbstractJpaTest {
             template.sendBody("direct:start", null);
             fail("Should have thrown an exception");
         } catch (CamelExecutionException e) {
-            InvalidPayloadRuntimeException cause = assertIsInstanceOf(InvalidPayloadRuntimeException.class,
e.getCause());
-            assertTrue(cause.getMessage().contains("Body is null"));
+            assertIsInstanceOf(InvalidPayloadRuntimeException.class, e.getCause());
         }
     }
 


Mime
View raw message