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 65 public class TestXmlns5 extends AbstractTestCase 66 { 67 public TestXmlns5(String name) 68 { 69 super(name); 70 } 71 72 75 public void setUp() 76 throws 77 Exception 78 { 79 setUpFiles( "test-xmlns5.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 TestXmlns5("test-xmlns5.txt"); 91 cTest.run(); 92 } 93 } | Popular Tags |