/** Runs the test. */ public void runTest() { VelocityContext context = new VelocityContext(); context.put("name", "jason"); context.put("Floog", "floogie woogie"); try { Velocity.evaluate(context, compare1, "evaltest", input1); /* FIXME: Not tested right now. StringWriter result2 = new StringWriter(); Velocity.mergeTemplate("mergethis.vm", context, result2); StringWriter result3 = new StringWriter(); Velocity.invokeVelocimacro("floog", "test", new String[2], context, result3); */ if (!result1.equals(compare1.toString())) { fail("Output incorrect."); } } catch (Exception e) { fail(e.getMessage()); } }