camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-8602: Java 8: ConcurrentLinkedHashMap -> Caffeine
Date Thu, 31 Mar 2016 11:32:14 GMT
Repository: camel
Updated Branches:
  refs/heads/master 4e0d50b18 -> a9496f45f


CAMEL-8602: Java 8: ConcurrentLinkedHashMap -> Caffeine


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

Branch: refs/heads/master
Commit: a9496f45fb80970023fd4cef2776cbe308b07104
Parents: 4e0d50b
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Mar 31 13:28:45 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Mar 31 13:28:45 2016 +0200

----------------------------------------------------------------------
 .../camel/spring/config/ConsumerTemplateMaximumCacheSizeTest.java | 3 +++
 .../camel/spring/config/ProducerTemplateMaximumCacheSizeTest.java | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a9496f45/components/camel-spring/src/test/java/org/apache/camel/spring/config/ConsumerTemplateMaximumCacheSizeTest.java
----------------------------------------------------------------------
diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/config/ConsumerTemplateMaximumCacheSizeTest.java
b/components/camel-spring/src/test/java/org/apache/camel/spring/config/ConsumerTemplateMaximumCacheSizeTest.java
index 9ede950..747809e 100644
--- a/components/camel-spring/src/test/java/org/apache/camel/spring/config/ConsumerTemplateMaximumCacheSizeTest.java
+++ b/components/camel-spring/src/test/java/org/apache/camel/spring/config/ConsumerTemplateMaximumCacheSizeTest.java
@@ -52,6 +52,9 @@ public class ConsumerTemplateMaximumCacheSizeTest extends SpringRunWithTestSuppo
             template.receiveNoWait(e);
         }
 
+        // the eviction is async so force cleanup
+        template.cleanUp();
+
         assertEquals("Size should be 50", 50, template.getCurrentCacheSize());
         template.stop();
 

http://git-wip-us.apache.org/repos/asf/camel/blob/a9496f45/components/camel-spring/src/test/java/org/apache/camel/spring/config/ProducerTemplateMaximumCacheSizeTest.java
----------------------------------------------------------------------
diff --git a/components/camel-spring/src/test/java/org/apache/camel/spring/config/ProducerTemplateMaximumCacheSizeTest.java
b/components/camel-spring/src/test/java/org/apache/camel/spring/config/ProducerTemplateMaximumCacheSizeTest.java
index 344292c..6cf7926 100644
--- a/components/camel-spring/src/test/java/org/apache/camel/spring/config/ProducerTemplateMaximumCacheSizeTest.java
+++ b/components/camel-spring/src/test/java/org/apache/camel/spring/config/ProducerTemplateMaximumCacheSizeTest.java
@@ -52,6 +52,9 @@ public class ProducerTemplateMaximumCacheSizeTest extends SpringRunWithTestSuppo
             template.sendBody(e, "Hello");
         }
 
+        // the eviction is async so force cleanup
+        template.cleanUp();
+
         assertEquals("Size should be 50", 50, template.getCurrentCacheSize());
         template.stop();
 


Mime
View raw message