Skip to content

Commit 454c1cb

Browse files
committed
Rebase on master and update test to deal with interpretercontext constructor change
1 parent b30f6f4 commit 454c1cb

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

spark/src/test/java/org/apache/zeppelin/spark/SparkRInterpreterTest.java

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.apache.zeppelin.display.AngularObjectRegistry;
2828
import org.apache.zeppelin.display.GUI;
2929
import org.apache.zeppelin.interpreter.*;
30+
import org.apache.zeppelin.user.AuthenticationInfo;
3031
import org.junit.*;
3132
import org.junit.runner.RunWith;
3233
import org.mockito.Mockito;
@@ -87,18 +88,21 @@ private static void initInterpreters() {
8788
sparkRInterpreter.setInterpreterGroup(intpGroup);
8889
sparkRInterpreter.open();
8990

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+
}
103107

104108
}

0 commit comments

Comments
 (0)