This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch infinispan-key in repository https://gitbox.apache.org/repos/asf/camel.git
commit 482d5f4836be443a968395c4980af148dc0c7d50 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu Oct 1 18:27:15 2020 +0200 CAMEL-15609 - Camel-Infinispan: Add an explicit key uri parameter for producer, added tests --- .../apache/camel/component/infinispan/InfinispanProducerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanProducerTest.java b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanProducerTest.java index e6ff2de..26f5b5a 100644 --- a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanProducerTest.java +++ b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanProducerTest.java @@ -1071,7 +1071,7 @@ public class InfinispanProducerTest extends InfinispanTestSupport { Stats resultStats = exchange.getIn().getBody(Stats.class); assertEquals(2L, resultStats.getTotalNumberOfEntries()); } - + @Test public void publishKeyAndValueByExplicitlySpecifyingTheKeyAndValueOptions() throws Exception { template.send("direct:explicitput", new Processor() { @@ -1084,7 +1084,7 @@ public class InfinispanProducerTest extends InfinispanTestSupport { Object value = currentCache().get("a"); assertEquals("3", value.toString()); } - + @Test public void publishKeyAndValueByExplicitlySpecifyingTheKeyAndValueOptionsHeaderHavePriorities() throws Exception { template.send("direct:explicitput", new Processor() { @@ -1096,8 +1096,8 @@ public class InfinispanProducerTest extends InfinispanTestSupport { } }); - Object value = currentCache().get("a"); - assertEquals("3", value.toString()); + Object value = currentCache().get(KEY_ONE); + assertEquals(VALUE_ONE, value.toString()); } @Override
