mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
[ZEPPELIN-2403] fix test
This commit is contained in:
parent
c6d24c4c35
commit
f735c0a946
2 changed files with 7 additions and 2 deletions
|
|
@ -69,4 +69,9 @@ public class InterpreterProperty {
|
|||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("{name=%s, value=%s, widget=%s, type=%s}", name, value, widget, type);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -338,8 +338,8 @@ public class InterpreterFactoryTest {
|
|||
|
||||
// check if interpreter instance is saved as Properties in conf/interpreter.json file
|
||||
Map<String, InterpreterProperty> properties = new HashMap<String, InterpreterProperty>();
|
||||
properties.put("key1", new InterpreterProperty("key1", "value1"));
|
||||
properties.put("key2", new InterpreterProperty("key2", "value2"));
|
||||
properties.put("key1", new InterpreterProperty("key1", "value1", "widget1", "type1"));
|
||||
properties.put("key2", new InterpreterProperty("key2", "value2", "widget2", "type2"));
|
||||
|
||||
interpreterSettingManager.createNewSetting("newMock", "mock1", new LinkedList<Dependency>(), new InterpreterOption(false), properties);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue