|
27 | 27 | import org.apache.zeppelin.display.AngularObjectRegistry; |
28 | 28 | import org.apache.zeppelin.display.GUI; |
29 | 29 | import org.apache.zeppelin.interpreter.*; |
| 30 | +import org.apache.zeppelin.user.AuthenticationInfo; |
30 | 31 | import org.junit.*; |
31 | 32 | import org.junit.runner.RunWith; |
32 | 33 | import org.mockito.Mockito; |
@@ -87,18 +88,21 @@ private static void initInterpreters() { |
87 | 88 | sparkRInterpreter.setInterpreterGroup(intpGroup); |
88 | 89 | sparkRInterpreter.open(); |
89 | 90 |
|
90 | | - context = new InterpreterContext("note", "id", "title", "text", new HashMap<String, Object>(), new GUI(), |
91 | | - new AngularObjectRegistry(intpGroup.getId(), null), |
92 | | - null, |
93 | | - new LinkedList<InterpreterContextRunner>(), new InterpreterOutput(new InterpreterOutputListener() { |
94 | | - @Override |
95 | | - public void onAppend(InterpreterOutput out, byte[] line) { |
96 | | - } |
97 | | - @Override |
98 | | - public void onUpdate(InterpreterOutput out, byte[] output) { |
99 | | - } |
100 | | - })); |
101 | | - |
102 | | - } |
| 91 | + context = new InterpreterContext("note", "id", "title", "text", |
| 92 | + new AuthenticationInfo(), |
| 93 | + new HashMap<String, Object>(), new GUI(), |
| 94 | + new AngularObjectRegistry(intpGroup.getId(), null), |
| 95 | + null, |
| 96 | + new LinkedList<InterpreterContextRunner>(), |
| 97 | + new InterpreterOutput(new InterpreterOutputListener() { |
| 98 | + @Override |
| 99 | + public void onAppend(InterpreterOutput out, byte[] line) { |
| 100 | + } |
| 101 | + @Override |
| 102 | + public void onUpdate(InterpreterOutput out, byte[] output) { |
| 103 | + } |
| 104 | + }) |
| 105 | + ); |
| 106 | + } |
103 | 107 |
|
104 | 108 | } |
0 commit comments