Skip to content

Commit 9c9c8fd

Browse files
committed
update test
1 parent 18215a3 commit 9c9c8fd

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

zeppelin-zengine/src/test/java/org/apache/zeppelin/interpreter/InterpreterFactoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void setUp() throws Exception {
5555
System.setProperty(ConfVars.ZEPPELIN_HOME.getVarName(), tmpDir.getAbsolutePath());
5656
System.setProperty(ConfVars.ZEPPELIN_INTERPRETERS.getVarName(), "org.apache.zeppelin.interpreter.mock.MockInterpreter1,org.apache.zeppelin.interpreter.mock.MockInterpreter2");
5757
conf = new ZeppelinConfiguration();
58-
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null);
58+
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null, null);
5959
context = new InterpreterContext("note", "id", "title", "text", null, null, null, null, null);
6060

6161
}
@@ -140,7 +140,7 @@ public void testSaveLoad() throws InterpreterException, IOException {
140140
factory.add("newsetting", "mock1", new InterpreterOption(false), new Properties());
141141
assertEquals(3, factory.get().size());
142142

143-
InterpreterFactory factory2 = new InterpreterFactory(conf, null, null);
143+
InterpreterFactory factory2 = new InterpreterFactory(conf, null, null, null);
144144
assertEquals(3, factory2.get().size());
145145
}
146146
}

zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NoteInterpreterLoaderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void setUp() throws Exception {
5858
MockInterpreter11.register("mock11", "group1", "org.apache.zeppelin.interpreter.mock.MockInterpreter11");
5959
MockInterpreter2.register("mock2", "group2", "org.apache.zeppelin.interpreter.mock.MockInterpreter2");
6060

61-
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null);
61+
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null, null);
6262
}
6363

6464
@After

zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/NotebookTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void setUp() throws Exception {
8686
MockInterpreter1.register("mock1", "org.apache.zeppelin.interpreter.mock.MockInterpreter1");
8787
MockInterpreter2.register("mock2", "org.apache.zeppelin.interpreter.mock.MockInterpreter2");
8888

89-
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null);
89+
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null, null);
9090

9191
SearchService search = mock(SearchService.class);
9292
notebookRepo = new VFSNotebookRepo(conf);
@@ -173,7 +173,8 @@ public void testPersist() throws IOException, SchedulerException{
173173
note.persist();
174174

175175
Notebook notebook2 = new Notebook(
176-
conf, notebookRepo, schedulerFactory, new InterpreterFactory(conf, null, null), this, null);
176+
conf, notebookRepo, schedulerFactory, new InterpreterFactory(conf, null, null, null), this,
177+
null);
177178
assertEquals(1, notebook2.getAllNotes().size());
178179
}
179180

zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/repo/NotebookRepoSyncTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void setUp() throws Exception {
8585
MockInterpreter1.register("mock1", "org.apache.zeppelin.interpreter.mock.MockInterpreter1");
8686
MockInterpreter2.register("mock2", "org.apache.zeppelin.interpreter.mock.MockInterpreter2");
8787

88-
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null);
88+
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null, null);
8989

9090
SearchService search = mock(SearchService.class);
9191
notebookRepoSync = new NotebookRepoSync(conf);

zeppelin-zengine/src/test/java/org/apache/zeppelin/notebook/repo/VFSNotebookRepoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void setUp() throws Exception {
7373
MockInterpreter1.register("mock1", "org.apache.zeppelin.interpreter.mock.MockInterpreter1");
7474

7575
this.schedulerFactory = new SchedulerFactory();
76-
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null);
76+
factory = new InterpreterFactory(conf, new InterpreterOption(false), null, null, null);
7777

7878
SearchService search = mock(SearchService.class);
7979
notebookRepo = new VFSNotebookRepo(conf);

0 commit comments

Comments
 (0)