1 52 53 package freemarker.testcase; 54 55 import java.util.HashMap ; 56 import java.util.Map ; 57 58 import org.xml.sax.InputSource ; 59 import freemarker.ext.dom.NodeModel; 60 import freemarker.template.SimpleHash; 61 62 66 public class TestDefaultXmlns1 extends AbstractTestCase 67 { 68 public TestDefaultXmlns1(String name) 69 { 70 super(name); 71 } 72 73 76 public void setUp() 77 throws 78 Exception 79 { 80 setUpFiles( "test-defaultxmlns1.txt" ); 81 82 Map map = new HashMap (); 83 map.put("doc", NodeModel.parse(new InputSource (getClass().getResourceAsStream("test-defaultxmlns1.xml")))); 84 root = new SimpleHash(map); 85 } 86 87 89 public static void main( String [] argc ) throws Exception { 90 AbstractTestCase cTest = new TestDefaultXmlns1("test-defaultxmlns1.txt"); 91 cTest.run(); 92 } 93 } | Popular Tags |