orpiske commented on a change in pull request #6936:
URL: https://github.com/apache/camel/pull/6936#discussion_r804716091



##########
File path: 
components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/integration/MongoDbCredentialsFromUriConnectionIT.java
##########
@@ -41,6 +50,22 @@ protected CamelContext createCamelContext() throws Exception 
{
         return ctx;
     }
 
+    @Test
+    public void testCountOperationAuthUser() {
+        // Test that the collection has 0 documents in it
+        assertEquals(0, testCollection.countDocuments());
+        Object result = template.requestBody("direct:testAuthSource", 
"irrelevantBody");
+        assertTrue(result instanceof Long, "Result is not of type Long");

Review comment:
       I think you can use `assertInstanceOf` for greater readability. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to