You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/04/01 14:26:12 UTC
[camel] 05/05: CAMEL-17763: cleanup unused exceptions in camel-caffeine-lrucache
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 c9273acc92775518535576b4da32287ccb609311
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Apr 1 15:33:53 2022 +0200
CAMEL-17763: cleanup unused exceptions in camel-caffeine-lrucache
---
.../caffeine/lrucache/CaffeineLRUCacheTest.java | 4 ++--
.../caffeine/lrucache/CaffeineLRUSoftCacheTest.java | 20 ++++++++++----------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java
index 6d7b241..79ab9d1 100644
--- a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java
+++ b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUCacheTest.java
@@ -30,7 +30,7 @@ public class CaffeineLRUCacheTest {
private LRUCache<String, Service> cache;
@BeforeEach
- public void setUp() throws Exception {
+ public void setUp() {
// for testing use sync listener
cache = new CaffeineLRUCache<>(10, 10, true, false, false, true);
}
@@ -50,7 +50,7 @@ public class CaffeineLRUCacheTest {
}
@Test
- public void testLRUCacheEviction() throws Exception {
+ public void testLRUCacheEviction() {
MyService service1 = new MyService();
MyService service2 = new MyService();
MyService service3 = new MyService();
diff --git a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java
index eba5526..2f2fa68 100644
--- a/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java
+++ b/components/camel-caffeine-lrucache/src/test/java/org/apache/camel/component/caffeine/lrucache/CaffeineLRUSoftCacheTest.java
@@ -35,7 +35,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
public class CaffeineLRUSoftCacheTest {
@Test
- public void testLRUSoftCacheGetAndPut() throws Exception {
+ public void testLRUSoftCacheGetAndPut() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
cache.put(1, "foo");
@@ -48,7 +48,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCacheHitsAndMisses() throws Exception {
+ public void testLRUSoftCacheHitsAndMisses() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
cache.put(1, "foo");
@@ -71,7 +71,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCachePutOverride() throws Exception {
+ public void testLRUSoftCachePutOverride() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
Object old = cache.put(1, "foo");
@@ -89,7 +89,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCachePutAll() throws Exception {
+ public void testLRUSoftCachePutAll() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
Map<Integer, Object> map = new HashMap<>();
@@ -105,7 +105,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCachePutAllAnotherLRUSoftCache() throws Exception {
+ public void testLRUSoftCachePutAllAnotherLRUSoftCache() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
CaffeineLRUSoftCache<Integer, Object> cache2 = new CaffeineLRUSoftCache<>(1000);
@@ -121,7 +121,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCacheRemove() throws Exception {
+ public void testLRUSoftCacheRemove() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
cache.put(1, "foo");
@@ -133,7 +133,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCacheValues() throws Exception {
+ public void testLRUSoftCacheValues() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
cache.put(1, "foo");
@@ -148,7 +148,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCacheEmpty() throws Exception {
+ public void testLRUSoftCacheEmpty() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
assertTrue(cache.isEmpty());
@@ -167,7 +167,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCacheContainsKey() throws Exception {
+ public void testLRUSoftCacheContainsKey() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
assertFalse(cache.containsKey(1));
@@ -184,7 +184,7 @@ public class CaffeineLRUSoftCacheTest {
}
@Test
- public void testLRUSoftCacheKeySet() throws Exception {
+ public void testLRUSoftCacheKeySet() {
CaffeineLRUSoftCache<Integer, Object> cache = new CaffeineLRUSoftCache<>(1000);
cache.put(1, "foo");