1 52 53 package freemarker.testcase; 54 55 import freemarker.template.SimpleHash; 56 import freemarker.template.SimpleScalar; 57 58 62 public class TestListLiteral extends AbstractTestCase { 63 64 public TestListLiteral( String aTestname ) { 65 super( aTestname ); 66 } 67 68 71 public void setUp() { 72 setUpFiles( "test-listliteral.html" ); 73 74 root.put("message", new SimpleScalar("Hello, world!")); 75 76 SimpleHash cModel1 = new SimpleHash(); 77 78 cModel1.put( "temp", "Temporary" ); 79 root.put( "hash", cModel1 ); 80 } 81 82 84 public static void main( String [] argc ) throws Exception { 85 AbstractTestCase cTest = new TestListLiteral( "test-listliteral.html" ); 86 cTest.run(); 87 } 88 } 89 | Popular Tags |