@Test public void canInitWithProperty() throws Exception { Properties properties = new Properties(); properties.put("property1", "value1"); properties.put("property2", "value2"); VelocityWrapper wrapper = new VelocityWrapper(properties); VelocityEngine velocityEngine = wrapper.getVelocityEngine(); assertThat(velocityEngine.getProperty("property1"), equalTo("value1")); assertThat(velocityEngine.getProperty("property2"), equalTo("value2")); }
VelocityEngine getVelocityEngine() { return velocityEngine; }
VelocityWrapper { VelocityEngine getVelocityEngine() { return velocityEngine; } }
VelocityWrapper { VelocityEngine getVelocityEngine() { return velocityEngine; } VelocityWrapper();  VelocityWrapper(Properties properties); }
VelocityWrapper { VelocityEngine getVelocityEngine() { return velocityEngine; } VelocityWrapper();  VelocityWrapper(Properties properties); String merge(Map<String, Object> contextMap, String templateFileName); }
VelocityWrapper { VelocityEngine getVelocityEngine() { return velocityEngine; } VelocityWrapper();  VelocityWrapper(Properties properties); String merge(Map<String, Object> contextMap, String templateFileName);  }