KickJava   Java API By Example, From Geeks To Geeks.

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


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

19 }
20
Popular Tags