.getLogger(VelocityConfigFileWriterTest.class.getName());
public void testCreateConfigFile() throws IOException {
URL url = this.getClass().getResource("/test-config.vm");
VelocityConfigFileWriter vcfw = new VelocityConfigFileWriter();
VelocityMetadata metadata = new VelocityMetadata(new Metadata());
metadata.addMetadata("name", "Chris");
metadata.addMetadata("name", "Paul");
metadata.addMetadata("conference", "ApacheCon");
File config = File.createTempFile("config", ".out");
try {
vcfw.generateFile(config.toString(), metadata, LOG, url.getFile());
} catch (Exception e) {
e.printStackTrace();