You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/08/11 12:54:35 UTC

[camel] branch main updated: CAMEL-15520: removed the deprecated NotifyBuilder.matchesMockWaitTime

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 85ce459d22c CAMEL-15520: removed the deprecated NotifyBuilder.matchesMockWaitTime
85ce459d22c is described below

commit 85ce459d22ca5ce5f8e13ac4f1a2282683246be3
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Thu Aug 11 12:51:28 2022 +0200

    CAMEL-15520: removed the deprecated NotifyBuilder.matchesMockWaitTime
---
 .../idempotent/FileConsumerIdempotentLoadStoreTest.java  |  2 +-
 .../java/org/apache/camel/builder/NotifyBuilder.java     | 16 ----------------
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/components/camel-spring-xml/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentLoadStoreTest.java b/components/camel-spring-xml/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentLoadStoreTest.java
index a9c0a132fbe..f7b24c38491 100644
--- a/components/camel-spring-xml/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentLoadStoreTest.java
+++ b/components/camel-spring-xml/src/test/java/org/apache/camel/spring/processor/idempotent/FileConsumerIdempotentLoadStoreTest.java
@@ -69,7 +69,7 @@ public class FileConsumerIdempotentLoadStoreTest extends ContextTestSupport {
 
         assertMockEndpointsSatisfied();
         // wait for the exchange to be done, as it only append to idempotent repo after success
-        oneExchangeDone.matchesMockWaitTime();
+        oneExchangeDone.matchesWaitTime();
 
         String name = FileUtil.normalizePath(testFile("report.txt").toAbsolutePath().toString());
         assertTrue(repo.contains(name), "Should contain file: " + name);
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java b/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java
index 94e103d88cc..ff6497e2a74 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/builder/NotifyBuilder.java
@@ -1240,22 +1240,6 @@ public class NotifyBuilder {
         return matches();
     }
 
-    /**
-     * Does all the expressions match?
-     * <p/>
-     * This operation will wait until the match is <tt>true</tt> or otherwise a timeout occur which means <tt>false</tt>
-     * will be returned.
-     * <p/>
-     * The timeout value is by default 10 seconds.
-     *
-     * @return     <tt>true</tt> if matching, <tt>false</tt> otherwise due to timeout
-     * @deprecated use {@link #matchesWaitTime()} instead
-     */
-    @Deprecated
-    public boolean matchesMockWaitTime() {
-        return matchesWaitTime();
-    }
-
     /**
      * Does all the expressions match?
      * <p/>