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 2020/03/13 11:18:17 UTC

[camel] branch master updated (f323230 -> d531f20)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from f323230  Camel-Infinispan: Fixed CS
     new 2c3f1be  Camel-Infinispan: Cleanup
     new d531f20  Camel-Infinispan: Fixed CS

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../camel/component/infinispan/InfinispanComponentTest.java  |  2 --
 .../component/infinispan/InfinispanConfigurationIT.java      | 12 +++++++++++-
 2 files changed, 11 insertions(+), 3 deletions(-)


[camel] 02/02: Camel-Infinispan: Fixed CS

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d531f20274cc0399ecc03905d0d31d02476e8c02
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 13 12:17:34 2020 +0100

    Camel-Infinispan: Fixed CS
---
 .../apache/camel/component/infinispan/InfinispanConfigurationIT.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java
index 5839a4b..8ec59ed 100644
--- a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java
+++ b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java
@@ -33,8 +33,8 @@ import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
 public class InfinispanConfigurationIT {
-	
-	private RemoteCacheManager manager = new RemoteCacheManager();
+
+    private RemoteCacheManager manager = new RemoteCacheManager();
 
     @Before
     public void setupCache() {


[camel] 01/02: Camel-Infinispan: Cleanup

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2c3f1be38e2f346822b784f261e5dbe9603740ab
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 13 12:15:05 2020 +0100

    Camel-Infinispan: Cleanup
---
 .../camel/component/infinispan/InfinispanComponentTest.java  |  2 --
 .../component/infinispan/InfinispanConfigurationIT.java      | 12 +++++++++++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanComponentTest.java b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanComponentTest.java
index 3ee96e8..825476c 100644
--- a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanComponentTest.java
+++ b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanComponentTest.java
@@ -16,8 +16,6 @@
  */
 package org.apache.camel.component.infinispan;
 
-import java.util.UUID;
-
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.mock.MockEndpoint;
 import org.junit.Test;
diff --git a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java
index 2529abe..5839a4b 100644
--- a/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java
+++ b/components/camel-infinispan/src/test/java/org/apache/camel/component/infinispan/InfinispanConfigurationIT.java
@@ -24,6 +24,7 @@ import org.infinispan.configuration.global.GlobalConfiguration;
 import org.infinispan.configuration.global.GlobalConfigurationBuilder;
 import org.infinispan.manager.DefaultCacheManager;
 import org.jgroups.util.UUID;
+import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
@@ -32,13 +33,19 @@ import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
 public class InfinispanConfigurationIT {
+	
+	private RemoteCacheManager manager = new RemoteCacheManager();
 
     @Before
     public void setupCache() {
-        RemoteCacheManager manager = new RemoteCacheManager();
         RemoteCache<Object, Object> cache = manager.administration().getOrCreateCache("misc_cache", (String) null);
         assertNotNull(cache);
     }
+    
+    @After
+    public void cleanupCache() {
+        manager.close();
+    }
 
     @Test
     public void embeddedCacheWithFlagsTest() throws Exception {
@@ -55,6 +62,7 @@ public class InfinispanConfigurationIT {
 
         manager.getCacheContainer().stop();
         manager.stop();
+        manager.close();
     }
 
     @Test
@@ -75,6 +83,7 @@ public class InfinispanConfigurationIT {
         assertNull(remoteCache.put(key, "val1"));
         assertNull(remoteCache.put(key, "val2"));
         manager.stop();
+        manager.close();
     }
 
     @Test
@@ -95,5 +104,6 @@ public class InfinispanConfigurationIT {
         assertNotNull(cache.put(key, "val2"));
 
         manager.stop();
+        manager.close();
     }
 }