@Test public void setProperties() throws Exception { final Properties properties = new Properties(); properties.setProperty("key1", "value1"); properties.setProperty("key2", "value2"); properties.setProperty("key3", "value3"); defaultCompileTimeGlobalModelResolver.setProperties(properties); Assert.assertEquals("after setting data - returns value1", "value1", defaultCompileTimeGlobalModelResolver.resolveData().get().get("key1").stringValue()); Assert.assertEquals("after setting data - returns value2", "value2", defaultCompileTimeGlobalModelResolver.resolveData().get().get("key2").stringValue()); Assert.assertEquals("after setting data - returns value3", "value3", defaultCompileTimeGlobalModelResolver.resolveData().get().get("key3").stringValue()); }
public void setProperties(final Properties properties) { data = new HashMap(); for (final String propertyName : properties.stringPropertyNames()) { data.put(propertyName, properties.getProperty(propertyName)); } }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { public void setProperties(final Properties properties) { data = new HashMap(); for (final String propertyName : properties.stringPropertyNames()) { data.put(propertyName, properties.getProperty(propertyName)); } } }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { public void setProperties(final Properties properties) { data = new HashMap(); for (final String propertyName : properties.stringPropertyNames()) { data.put(propertyName, properties.getProperty(propertyName)); } }  }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { public void setProperties(final Properties properties) { data = new HashMap(); for (final String propertyName : properties.stringPropertyNames()) { data.put(propertyName, properties.getProperty(propertyName)); } }  @Override Optional<SoyMapData> resolveData(); void setData(final Map data); void setProperties(final Properties properties); }
DefaultCompileTimeGlobalModelResolver implements CompileTimeGlobalModelResolver { public void setProperties(final Properties properties) { data = new HashMap(); for (final String propertyName : properties.stringPropertyNames()) { data.put(propertyName, properties.getProperty(propertyName)); } }  @Override Optional<SoyMapData> resolveData(); void setData(final Map data); void setProperties(final Properties properties);  }