@Test void setProperties() { Map<String, Object> properties = new HashMap<>(); properties.put("key1", "value1"); properties.put("key2", "value2"); ExecutionContext context = new ExecutionContext(); context.setProperties(properties); assertEquals("value1", context.getProperty("key1")); assertEquals("value2", context.getProperty("key2")); }
public void setProperties(Map<String, Object> properties) { for (Map.Entry<String, Object> entry : properties.entrySet()) { setProperty(entry.getKey(), entry.getValue()); } }
ExecutionContext { public void setProperties(Map<String, Object> properties) { for (Map.Entry<String, Object> entry : properties.entrySet()) { setProperty(entry.getKey(), entry.getValue()); } } }
ExecutionContext { public void setProperties(Map<String, Object> properties) { for (Map.Entry<String, Object> entry : properties.entrySet()) { setProperty(entry.getKey(), entry.getValue()); } }  }
ExecutionContext { public void setProperties(Map<String, Object> properties) { for (Map.Entry<String, Object> entry : properties.entrySet()) { setProperty(entry.getKey(), entry.getValue()); } }  Object getProperty(String key); DeclarationBuilder newProperty(String key); boolean hasProperty(String key); Map<String, Object> getProperties(); void removeProperty(String key); void setProperty(String key, Object value); void setProperties(Map<String, Object> properties); void inheritFrom(ExecutionContext executionContext); }
ExecutionContext { public void setProperties(Map<String, Object> properties) { for (Map.Entry<String, Object> entry : properties.entrySet()) { setProperty(entry.getKey(), entry.getValue()); } }  Object getProperty(String key); DeclarationBuilder newProperty(String key); boolean hasProperty(String key); Map<String, Object> getProperties(); void removeProperty(String key); void setProperty(String key, Object value); void setProperties(Map<String, Object> properties); void inheritFrom(ExecutionContext executionContext);  }