1 52 53 package freemarker.testcase; 54 55 import junit.framework.TestResult; 56 import freemarker.template.SimpleNumber; 57 import freemarker.template.SimpleScalar; 58 59 64 public class TestComparisons extends AbstractTestCase { 65 66 67 public TestComparisons(String aTestname) { 68 super( aTestname ); 69 } 70 71 74 public void setUp() { 75 setUpFiles( "test-comparisons.html" ); 76 root.put("message", new SimpleScalar( "Hello, world!" )); 77 root.put("zero", new SimpleNumber(new Integer ( 0 ))); 78 } 79 80 81 83 public static void main( String [] argc ) throws Exception { 84 AbstractTestCase cTest = new TestComparisons( "test-comparisons.html" ); 85 TestResult cResults = new TestResult(); 86 87 cTest.run( cResults ); 88 } 89 } 90 | Popular Tags |