camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject git commit: CAMEL-7369: Polish
Date Tue, 15 Apr 2014 16:14:47 GMT
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 <bvahdat@apache.org>
Authored: Tue Apr 15 18:14:42 2014 +0200
Committer: Babak Vahdat <bvahdat@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"));
         }
     }


Mime
View raw message