1 52 53 package freemarker.testcase; 54 55 import freemarker.template.SimpleHash; 56 import freemarker.template.SimpleScalar; 57 import freemarker.template.utility.StandardCompress; 58 59 64 public class TestCompress extends AbstractTestCase { 65 66 public TestCompress (String aTestname) { 67 super( aTestname ); 68 } 69 70 73 public void setUp() { 74 setUpFiles( "test-compress.html" ); 75 SimpleHash utility = new SimpleHash(); 76 root.put("message", new SimpleScalar("Hello, world!")); 77 utility.put( "standardCompress", new StandardCompress() ); 78 root.put( "utility", utility ); 79 } 80 81 83 public static void main( String [] argc ) throws Exception { 84 AbstractTestCase cTest = new TestCompress( "test-compress.html" ); 85 cTest.run(); 86 } 87 } 88 | Popular Tags |