Repository: incubator-zeppelin
Updated Branches:
  refs/heads/master 4c66919b5 -> c1bb5cb55


ZEPPELIN-304 Intepreter.registeredInterpreted occurs failing tests wh…

…ile multiple tests runs

- Added clean-up logic for Interpreter.registeredInterpreters

Author: Jongyoul Lee <[email protected]>

Closes #305 from jongyoul/ZEPPELIN-304 and squashes the following commits:

001b8a1 [Jongyoul Lee] ZEPPELIN-304 Intepreter.registeredInterpreted occurs 
failing tests while multiple tests runs - Added clean-up logic for 
Interpreter.registeredInterpreters


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

Branch: refs/heads/master
Commit: c1bb5cb55751ff27e3cb89145aed076c8df06556
Parents: 4c66919
Author: Jongyoul Lee <[email protected]>
Authored: Mon Sep 14 15:10:04 2015 +0900
Committer: Lee moon soo <[email protected]>
Committed: Fri Sep 18 14:57:03 2015 +0900

----------------------------------------------------------------------
 .../org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/c1bb5cb5/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java
----------------------------------------------------------------------
diff --git 
a/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java
 
b/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java
index 2a4e17f..3463a90 100644
--- 
a/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java
+++ 
b/zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java
@@ -4,9 +4,12 @@ import static org.junit.Assert.assertEquals;
 
 import java.io.File;
 import java.io.IOException;
+import java.util.Collections;
+import java.util.HashMap;
 
 import org.apache.zeppelin.conf.ZeppelinConfiguration;
 import org.apache.zeppelin.conf.ZeppelinConfiguration.ConfVars;
+import org.apache.zeppelin.interpreter.Interpreter;
 import org.apache.zeppelin.interpreter.InterpreterFactory;
 import org.apache.zeppelin.interpreter.InterpreterOption;
 import org.apache.zeppelin.interpreter.mock.MockInterpreter1;
@@ -33,6 +36,8 @@ public class NoteInterpreterLoaderTest {
 
     conf = ZeppelinConfiguration.create();
 
+    Interpreter.registeredInterpreters = Collections
+        .synchronizedMap(new HashMap<String, 
Interpreter.RegisteredInterpreter>());
     MockInterpreter1.register("mock1", "group1", 
"org.apache.zeppelin.interpreter.mock.MockInterpreter1");
     MockInterpreter11.register("mock11", "group1", 
"org.apache.zeppelin.interpreter.mock.MockInterpreter11");
     MockInterpreter2.register("mock2", "group2", 
"org.apache.zeppelin.interpreter.mock.MockInterpreter2");

Reply via email to