essobedo commented on code in PR #10436:
URL: https://github.com/apache/camel/pull/10436#discussion_r1234167731
##########
components/camel-mongodb/src/test/java/org/apache/camel/component/mongodb/integration/MongoDbChangeStreamsConsumerIT.java:
##########
@@ -109,6 +109,36 @@ public void filterTest() throws Exception {
@Order(3)
@Test
+ public void updateWithFullDocumentTest() throws Exception {
+ assertEquals(0, mongoCollection.countDocuments());
+ MockEndpoint mock = contextExtension.getMockEndpoint("mock:test");
+ mock.expectedMessageCount(1);
+
+ String consumerRouteId = "updateWithFullDocumentConsumer";
+ context.getRouteController().startRoute(consumerRouteId);
+
+ ObjectId objectId1 = new ObjectId();
+ ObjectId objectId2 = new ObjectId();
+ Executors.newSingleThreadExecutor().submit(() -> {
Review Comment:
If you don't mind, I would rather prefer to use the common pool instead by
calling `CompletableFuture.runAsync` like in this commit
https://github.com/apache/camel/commit/8a33263dee0d6265a970835f1417a6c166838df9.
This way you don't create any thread pool.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]