public TestXMLBeanInfoDigester(String testName) {
super(testName);
}
public void testDigester() throws Exception {
XMLBeanInfoDigester digester = new XMLBeanInfoDigester();
// TODO the digestion probably won't work without an XMLIntrospector
// so it might be better to enforce via a constructor
// or create a default one
digester.setXMLIntrospector(new XMLIntrospector());
InputStream in = new FileInputStream( getTestFile("src/test/org/apache/commons/digester/rss/Channel.betwixt") );
assertTrue( "Found betwixt config file", in != null );
XMLBeanInfo info = (XMLBeanInfo) digester.parse( in );
assertTrue( "Found XMLBeanInfo", info != null );
ElementDescriptor descriptor = info.getElementDescriptor();