@Test public void canInitWithDefault() throws Exception { VelocityWrapper wrapper = new VelocityWrapper(); VelocityEngine velocityEngine = wrapper.getVelocityEngine(); assertThat(velocityEngine.getProperty("classpath.resource.loader.class"), equalTo("org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader")); assertThat(velocityEngine.getProperty("runtime.log.logsystem.class"), equalTo("org.apache.velocity.runtime.log.SimpleLog4JLogSystem")); assertThat(velocityEngine.getProperty("runtime.log.logsystem.log4j.category"), equalTo("velocity")); assertThat(velocityEngine.getProperty("runtime.log.logsystem.log4j.logger"), equalTo("velocity")); }
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);  }