You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2014/04/15 18:14:47 UTC

git commit: CAMEL-7369: Polish

Repository: camel
Updated Branches:
  refs/heads/master 515259671 -> cf2e338b5


CAMEL-7369: Polish

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

Branch: refs/heads/master
Commit: cf2e338b57983cc579972e49c9b7d836fa97895a
Parents: 5152596
Author: Babak Vahdat <bv...@apache.org>
Authored: Tue Apr 15 18:14:42 2014 +0200
Committer: Babak Vahdat <bv...@apache.org>
Committed: Tue Apr 15 18:14:42 2014 +0200

----------------------------------------------------------------------
 .../camel/component/mongodb/MongoDbReadPreferenceOptionTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/cf2e338b/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbReadPreferenceOptionTest.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbReadPreferenceOptionTest.java b/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbReadPreferenceOptionTest.java
index 49e27d2..a11780c 100644
--- a/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbReadPreferenceOptionTest.java
+++ b/components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/MongoDbReadPreferenceOptionTest.java
@@ -29,7 +29,7 @@ public class MongoDbReadPreferenceOptionTest extends AbstractMongoDbTest {
         try {
             createMongoDbEndpoint("mongodb:myDb?database={{mongodb.testDb}}&readPreference=foo");
             fail("Should have thrown exception");
-        } catch (Exception iae) {
+        } catch (IllegalArgumentException iae) {
             assertTrue(iae.getMessage(), iae.getMessage().endsWith("No match for read preference of foo"));
         }
     }