xmlAssertIsomorphicContent(
parseString(xml),
parseString(out.getBuffer().toString()),
true);
BeanReader reader = new BeanReader();
// logging just for this method
// SimpleLog log = new SimpleLog("[testSimpleRead:XMLIntrospectorHelper]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// XMLIntrospectorHelper.setLog(log);
// log = new SimpleLog("[testSimpleRead:MethodUpdater]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// MethodUpdater.setLog(log);
// log = new SimpleLog("[testSimpleRead:BeanCreateRule]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// BeanCreateRule.setLog(log);
// log = new SimpleLog("[testSimpleRead:BeanRuleSet]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// BeanRuleSet.setLog(log);
// log = new SimpleLog("[testSimpleRead:IDBean]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// IDBean.log = log;
// log = new SimpleLog("[testSimpleRead:BeanReader]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// reader.setLog(log);
// log = new SimpleLog("[testSimpleRead:XMLIntrospector]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
// reader.getXMLIntrospector().setLog(log);
reader.registerBeanClass( IDBean.class );
InputStream in = new FileInputStream(
getTestFile("src/test/org/apache/commons/betwixt/digester/SimpleReadTest.xml") );
try {
// log = new SimpleLog("[testSimpleRead]");
// log.setLevel(SimpleLog.LOG_LEVEL_TRACE);
Object obj = reader.parse( in );
// log.debug(obj);
assertEquals("Read bean type is incorrect", true, (obj instanceof IDBean) );
IDBean alpha = (IDBean) obj;