This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit c75b49043e3097e33b10cef736e2c7b2011408c2 Author: Otavio Rodolfo Piske <angusyo...@gmail.com> AuthorDate: Wed Apr 10 10:58:41 2024 +0200 (chores) camel-core: use bulk API calls --- .../test/java/org/apache/camel/support/cache/SimpleSoftCacheTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleSoftCacheTest.java b/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleSoftCacheTest.java index 3dd3bdea625..28c6822c549 100644 --- a/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleSoftCacheTest.java +++ b/core/camel-core/src/test/java/org/apache/camel/support/cache/SimpleSoftCacheTest.java @@ -74,7 +74,7 @@ class SimpleSoftCacheTest { cache.put(2, "bar"); Map<Integer, Object> tmp = new HashMap<>(); - cache.forEach(tmp::put); + tmp.putAll(cache); assertEquals("foo", tmp.get(1)); assertEquals("bar", tmp.get(2)); @@ -85,7 +85,7 @@ class SimpleSoftCacheTest { cache.getInnerCache().get(1).clear(); tmp = new HashMap<>(); - cache.forEach(tmp::put); + tmp.putAll(cache); assertNull(tmp.get(1)); assertEquals("bar", tmp.get(2));