[ZEPPELIN-2320] fixing test + modifying map browsing

This commit is contained in:
Remilito 2017-03-27 10:43:26 +02:00
parent 78e2e912b6
commit 9ad16bc73a
2 changed files with 4 additions and 3 deletions

View file

@ -969,9 +969,10 @@ public class NotebookRestApi {
throw new BadRequestException("paragraph config cannot be empty");
}
Map<String, Object> origConfig = p.getConfig();
for (String key : newConfig.keySet()) {
origConfig.put(key, newConfig.get(key));
for ( final Map.Entry<String, Object> entry : newConfig.entrySet()){
origConfig.put(entry.getKey(), entry.getValue());
}
p.setConfig(origConfig);
}

View file

@ -164,7 +164,7 @@ public class ZeppelinRestApiTest extends AbstractTestRestApi {
}
assertTrue("paragraph title check failed", p.getTitle().startsWith("title"));
assertTrue("paragraph text check failed", p.getText().startsWith("text"));
if ( p.getTitle() == "titleConfig"){
if ( p.getTitle().equals("titleConfig")){
assertEquals("paragraph col width check failed", 9.0, p.getConfig().get("colWidth"));
assertTrue("paragraph show title check failed", ((boolean) p.getConfig().get("title")));
Map graph = ((List<Map>)p.getConfig().get("results")).get(0);