You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/06/07 10:48:17 UTC
[2/5] camel git commit: Not closing the user managed ignite instance
caused side-effects on other tests.
Not closing the user managed ignite instance caused side-effects on other tests.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3ae1b83b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3ae1b83b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3ae1b83b
Branch: refs/heads/camel-2.19.x
Commit: 3ae1b83bbb13ec7084d7b08cef949ea73b88e750
Parents: a340de4
Author: Gary Hodgson <ga...@tup.com>
Authored: Wed Jun 7 08:35:31 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jun 7 10:34:14 2017 +0200
----------------------------------------------------------------------
.../camel/component/ignite/IgniteCreationTest.java | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/3ae1b83b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCreationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCreationTest.java b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCreationTest.java
index 1da4e1c..52254a4 100644
--- a/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCreationTest.java
+++ b/components/camel-ignite/src/test/java/org/apache/camel/component/ignite/IgniteCreationTest.java
@@ -19,9 +19,12 @@ package org.apache.camel.component.ignite;
import org.apache.camel.component.ignite.cache.IgniteCacheComponent;
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
+import org.junit.After;
import org.junit.Test;
public class IgniteCreationTest extends AbstractIgniteTest {
+
+ private Ignite ignite;
@Override
protected String getScheme() {
@@ -30,7 +33,7 @@ public class IgniteCreationTest extends AbstractIgniteTest {
@Override
protected AbstractIgniteComponent createComponent() {
- Ignite ignite = Ignition.start(createConfiguration());
+ ignite = Ignition.start(createConfiguration());
return IgniteCacheComponent.fromIgnite(ignite);
}
@@ -43,5 +46,12 @@ public class IgniteCreationTest extends AbstractIgniteTest {
public boolean isCreateCamelContextPerClass() {
return true;
}
+
+ @After
+ public void stopUserManagedIgnite(){
+ if (ignite != null){
+ Ignition.stop(ignite.name(), true);
+ }
+ }
}