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