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 2023/07/11 11:50:04 UTC

[camel] branch main updated: CAMEL-19445: Simplified assertion in CaffeineIdempotentRepositoryTest

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 2e5ac65be8f CAMEL-19445: Simplified assertion in CaffeineIdempotentRepositoryTest
2e5ac65be8f is described below

commit 2e5ac65be8fdaf0b69d2575b5354c7b8a9b6f426
Author: Nikita Konovalov <nk...@redhat.com>
AuthorDate: Mon Jul 10 15:01:41 2023 +0200

    CAMEL-19445: Simplified assertion in CaffeineIdempotentRepositoryTest
---
 .../processor/idempotent/CaffeineIdempotentRepositoryTest.java         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryTest.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryTest.java
index a44457d0868..7bdc9b03c70 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryTest.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/processor/idempotent/CaffeineIdempotentRepositoryTest.java
@@ -24,7 +24,6 @@ import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Test;
 
-import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
@@ -114,7 +113,7 @@ public class CaffeineIdempotentRepositoryTest extends CamelTestSupport {
         // c is a duplicate
 
         // should be started
-        assertEquals(true, repo.getStatus().isStarted(), "Should be started");
+        assertTrue(repo.getStatus().isStarted(), "Should be started");
 
         // send 3 message with one duplicated key (key01)
         template.sendBodyAndHeader("direct://in", "a", "messageId", key01);