You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/06/22 08:06:16 UTC

camel git commit: CAMEL-10267 - Fixed test

Repository: camel
Updated Branches:
  refs/heads/master 75902f639 -> 1037541f3


CAMEL-10267 - Fixed test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/1037541f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/1037541f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/1037541f

Branch: refs/heads/master
Commit: 1037541f3c6d60ce2994c1130481f1af6a5df4b7
Parents: 75902f6
Author: Andrea Cosentino <an...@gmail.com>
Authored: Thu Jun 22 10:01:26 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Thu Jun 22 10:05:35 2017 +0200

----------------------------------------------------------------------
 .../caffeine/loadcache/CaffeineLoadCacheProducerTest.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/1037541f/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheProducerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheProducerTest.java b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheProducerTest.java
index b2d6a5d..cc7cee8 100644
--- a/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheProducerTest.java
+++ b/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/loadcache/CaffeineLoadCacheProducerTest.java
@@ -100,12 +100,12 @@ public class CaffeineLoadCacheProducerTest extends CaffeineLoadCacheTestSupport
     public void testCacheGet() throws Exception {
         final Cache<Object, Object> cache = getTestCache();
         final Integer key = 1;
-        final Integer val = 1;
+        final Integer val = 2;
 
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedMinimumMessageCount(1);
         mock.expectedBodiesReceived(val);
-        mock.expectedHeaderReceived(CaffeineConstants.ACTION_HAS_RESULT, false);
+        mock.expectedHeaderReceived(CaffeineConstants.ACTION_HAS_RESULT, true);
         mock.expectedHeaderReceived(CaffeineConstants.ACTION_SUCCEEDED, true);
 
         fluentTemplate().withHeader(CaffeineConstants.ACTION, CaffeineConstants.ACTION_GET).withHeader(CaffeineConstants.KEY, key).withBody(val).to("direct://start").send();