1 52 53 package freemarker.testcase; 54 55 import freemarker.template.TemplateModelException; 56 57 62 public class TestVarLayers extends AbstractTestCase { 63 64 public TestVarLayers(String aTestname) { 65 super( aTestname ); 66 } 67 68 71 public void setUp() throws TemplateModelException { 72 setUpFiles( "test-varlayers.txt" ); 73 74 root.put("x", new Integer (4)); 75 root.put("z", new Integer (4)); 76 config.setSharedVariable("y", new Integer (7)); 77 } 78 79 81 public static void main( String [] argc ) throws Exception { 82 AbstractTestCase cTest = new TestVarLayers( "test-varlayers.txt" ); 83 cTest.run(); 84 } 85 } | Popular Tags |