camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-10267 - Fixed test
Date Thu, 22 Jun 2017 08:06:16 GMT
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 <ancosen@gmail.com>
Authored: Thu Jun 22 10:01:26 2017 +0200
Committer: Andrea Cosentino <ancosen@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();


Mime
View raw message