mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Removed test for jdbc sugar
This commit is contained in:
parent
9f46bbdb25
commit
e52521f62f
1 changed files with 0 additions and 21 deletions
|
|
@ -82,27 +82,6 @@ public class NoteTest {
|
|||
assertEquals("Paragraph text", pText, pCaptor.getValue().getText());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void runJdbcTest() {
|
||||
when(interpreterFactory.getInterpreter(anyString(), eq("mysql"))).thenReturn(null);
|
||||
when(interpreterFactory.getInterpreter(anyString(), eq("jdbc"))).thenReturn(interpreter);
|
||||
when(interpreter.getScheduler()).thenReturn(scheduler);
|
||||
|
||||
String pText = "%mysql show databases";
|
||||
|
||||
Note note = new Note(repo, interpreterFactory, jobListenerFactory, index, credentials, noteEventListener);
|
||||
Paragraph p = note.addParagraph();
|
||||
p.setText(pText);
|
||||
note.run(p.getId());
|
||||
|
||||
ArgumentCaptor<Paragraph> pCaptor = ArgumentCaptor.forClass(Paragraph.class);
|
||||
verify(scheduler, only()).submit(pCaptor.capture());
|
||||
verify(interpreterFactory, times(2)).getInterpreter(anyString(), anyString());
|
||||
|
||||
assertEquals("Change paragraph text", "%jdbc(mysql) show databases", pCaptor.getValue().getEffectiveText());
|
||||
assertEquals("Change paragraph text", pText, pCaptor.getValue().getText());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void putDefaultReplNameIfInterpreterSettingAbsent() {
|
||||
when(interpreterFactory.getDefaultInterpreterSetting(anyString()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue