1 52 53 package freemarker.testcase; 54 55 import freemarker.template.SimpleScalar; 56 57 62 public class TestIdentifier extends AbstractTestCase { 63 64 public TestIdentifier(String aTestname) { 65 super( aTestname ); 66 config.setStrictSyntaxMode(false); 67 } 68 69 72 public void setUp() { 73 setUpFiles( "test-identifier.html" ); 74 root.put("message", new SimpleScalar("Hello, world!")); 75 root.put("f", new SimpleScalar("f")); 76 } 77 78 80 public static void main( String [] argc ) throws Exception { 81 AbstractTestCase cTest = new TestIdentifier( "test-identifier.html" ); 82 cTest.run(); 83 } 84 } 85 | Popular Tags |