KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtworks > xstream > io > xml > JDomReaderTest


1 package com.thoughtworks.xstream.io.xml;
2
3 import com.thoughtworks.xstream.io.HierarchicalStreamReader;
4
5 import java.io.StringReader JavaDoc;
6
7 import org.jdom.input.SAXBuilder;
8 import org.jdom.Document;
9
10 public class JDomReaderTest extends AbstractXMLReaderTest {
11
12     // factory method
13
protected HierarchicalStreamReader createReader(String JavaDoc xml) throws Exception JavaDoc {
14         Document document = new SAXBuilder().build(new StringReader JavaDoc(xml));
15         return new JDomReader(document);
16     }
17
18     // inherits tests from superclass
19

20 }
21
Popular Tags