This is an automated email from the ASF dual-hosted git repository. apupier pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 54d75cc6da1bf93609cfac69a53b1e4adc095eac Author: smjain <[email protected]> AuthorDate: Wed Sep 30 14:03:42 2026 +0530 CAMEL-25155: camel-spring-redis - remove an unused stub from the idempotent repository test Co-Authored-By: Claude Opus 5.5 <[email protected]> --- .../processor/idempotent/SpringRedisIdempotentRepositoryTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/processor/idempotent/SpringRedisIdempotentRepositoryTest.java b/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/processor/idempotent/SpringRedisIdempotentRepositoryTest.java index ad0f3cc334a0..3dc453e6f170 100644 --- a/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/processor/idempotent/SpringRedisIdempotentRepositoryTest.java +++ b/components/camel-spring-parent/camel-spring-redis/src/test/java/org/apache/camel/component/redis/processor/idempotent/SpringRedisIdempotentRepositoryTest.java @@ -76,8 +76,7 @@ public class SpringRedisIdempotentRepositoryTest { @Test public void shouldReturnFalseWhenKeyIsAlreadyInTheSet() { - // the key was not in the set when checked, but another consumer added it before this one: SADD adds nothing - when(setOperations.isMember(REPOSITORY, KEY)).thenReturn(false); + // another consumer added the key already: SADD adds nothing when(setOperations.add(REPOSITORY, KEY)).thenReturn(0L); assertFalse(idempotentRepository.add(KEY));
