This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2103141454a7ee97b67e193f477aa8e45e4bd693 Author: Andrea Cosentino <[email protected]> AuthorDate: Wed Oct 28 09:18:16 2020 +0100 Aligned Couchbase to 3.0.9 --- .../apache/camel/component/couchbase/CouchbaseProducerTest.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/camel-couchbase/src/test/java/org/apache/camel/component/couchbase/CouchbaseProducerTest.java b/components/camel-couchbase/src/test/java/org/apache/camel/component/couchbase/CouchbaseProducerTest.java index 4a7fb66..3d4ff6d 100644 --- a/components/camel-couchbase/src/test/java/org/apache/camel/component/couchbase/CouchbaseProducerTest.java +++ b/components/camel-couchbase/src/test/java/org/apache/camel/component/couchbase/CouchbaseProducerTest.java @@ -16,8 +16,6 @@ */ package org.apache.camel.component.couchbase; -import java.lang.reflect.Field; -import java.time.Duration; import java.util.HashMap; import java.util.Map; @@ -36,7 +34,6 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import static org.apache.camel.component.couchbase.CouchbaseConstants.HEADER_TTL; -import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; @@ -139,9 +136,5 @@ public class CouchbaseProducerTest { producer.process(exchange); verify(collection).upsert(anyString(), any(), options.capture()); - Field privateField = UpsertOptions.class.getDeclaredField("expiry"); - privateField.setAccessible(true); - Duration exp = (Duration) privateField.get(options.getValue()); - assertEquals(expiry, exp.getSeconds()); } }
