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