[ZEPPELIN-2403] fix test

This commit is contained in:
Tinkoff DWH 2017-05-11 11:51:35 +05:00
parent c6d24c4c35
commit f735c0a946
2 changed files with 7 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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);