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.beans.BeansWrapper; 60 import freemarker.ext.dom.NodeModel; 61 import freemarker.template.SimpleHash; 62 63 66 public class TestXmlns3 extends AbstractTestCase 67 { 68 public TestXmlns3(String name) 69 { 70 super(name); 71 } 72 73 76 public void setUp() 77 throws 78 Exception 79 { 80 setUpFiles( "test-xmlns3.html" ); 81 82 Map map = new HashMap (); 83 map.put("doc", NodeModel.parse(new InputSource (getClass().getResourceAsStream("test-xmlns3.xml")))); 84 root = new SimpleHash(map, BeansWrapper.getDefaultInstance()); 85 } 86 87 89 public static void main( String [] argc ) throws Exception { 90 AbstractTestCase cTest = new TestXmlns3( "test-xmlns3.html" ); 91 cTest.run(); 92 } 93 } | Popular Tags |