mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Update NoteTest
This commit is contained in:
parent
e54d633ef3
commit
5bef173af7
1 changed files with 5 additions and 2 deletions
|
|
@ -54,13 +54,16 @@ public class NoteTest {
|
|||
@Mock
|
||||
Scheduler scheduler;
|
||||
|
||||
@Mock
|
||||
NoteEventListener noteEventListener;
|
||||
|
||||
@Test
|
||||
public void runNormalTest() {
|
||||
when(replLoader.get("spark")).thenReturn(interpreter);
|
||||
when(interpreter.getScheduler()).thenReturn(scheduler);
|
||||
|
||||
String pText = "%spark sc.version";
|
||||
Note note = new Note(repo, replLoader, jobListenerFactory, index, credentials);
|
||||
Note note = new Note(repo, replLoader, jobListenerFactory, index, credentials, noteEventListener);
|
||||
Paragraph p = note.addParagraph();
|
||||
p.setText(pText);
|
||||
note.run(p.getId());
|
||||
|
|
@ -79,7 +82,7 @@ public class NoteTest {
|
|||
when(interpreter.getScheduler()).thenReturn(scheduler);
|
||||
|
||||
String pText = "%mysql show databases";
|
||||
Note note = new Note(repo, replLoader, jobListenerFactory, index, credentials);
|
||||
Note note = new Note(repo, replLoader, jobListenerFactory, index, credentials, noteEventListener);
|
||||
Paragraph p = note.addParagraph();
|
||||
p.setText(pText);
|
||||
note.run(p.getId());
|
||||
|
|
|
|||
Loading…
Reference in a new issue