1 4 package org.roller.presentation.velocity.plugins.textile; 5 6 import junit.framework.Test; 7 import junit.framework.TestCase; 8 import junit.framework.TestSuite; 9 10 import org.roller.presentation.bookmarks.BookmarksActionTest; 11 import org.roller.presentation.velocity.PagePlugin; 12 import org.roller.presentation.velocity.plugins.textile.TextilePlugin; 13 14 19 public class TextileTest extends TestCase 20 { 21 String textileStr = "*strong* plain _emphasis_ * _emphaticStrong_ * "; 22 String expected = "<p><strong>strong</strong> plain <em>emphasis</em> <strong> <em>emphaticStrong</em> </strong></p>"; 23 24 29 public void testTextile() 30 { 31 PagePlugin textile = new TextilePlugin(); 32 33 String result = textile.render(textileStr); 34 assertEquals("this will fail until Textile4J is fixed.", expected, result); 37 } 38 39 42 protected void setUp() throws Exception 43 { 44 super.setUp(); 45 } 46 47 50 protected void tearDown() throws Exception 51 { 52 super.tearDown(); 53 } 54 55 public static Test suite() 56 { 57 return new TestSuite(TextileTest.class); 58 } 59 60 } 61 | Popular Tags |