Bug 123734 org.eclipse.birt.report.tests.engine unit test failed in daily build 20060113
org.eclipse.birt.report.tests.engine unit test failed. Please see attached.
testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/ReportDocumentTest.java
String report_design=plug_path+file_path+designName;
		String report_document=plug_path+document_path+reportDocName;		
*/		
		String path=getBaseFolder()+System.getProperty("file.separator");
		String report_design=path+INPUT_FOLDER+System.getProperty("file.separator")+"report_document.rptdesign";
		String report_document=path+OUTPUT_FOLDER+System.getProperty("file.separator")+"report_document";
/*		
		String report_design="D:/TEMP/workspace3.1/org.eclipse.birt.report.tests.engine/input/report_document.rptdesign";
		String report_document="D:/TEMP/workspace3.1/org.eclipse.birt.report.tests.engine/output/report_document";
*/		
		
		try{
			createReportDocument1(report_design,report_document);
			IDocArchiveReader archive=new FileArchiveReader(report_document);
			IReportDocument reportDoc=engine.openReportDocument(report_document);
			
			
			TOCNode root,tableNode,headerNode,groupNode,detailNode,footerNode;
			root=reportDoc.findTOC("/");
			assertNotNull("get null root toc",root);
			assertNotNull("root contain no children toc",root.getChildren());
			tableNode=(TOCNode)root.getChildren().get(0);
			assertNotNull("table toc doesn't exist.",tableNode);
			assertEquals("table toc expression isn't TableSection","TableSection",tableNode.getDisplayString() );
			assertNotNull("table toc doesn't contain nodes",tableNode.getChildren());
			assertEquals("table toc doesn't contain 6 nodes",6,tableNode.getChildren().size());
			headerNode=(TOCNode)tableNode.getChildren().get(0);
			groupNode=(TOCNode)((TOCNode)tableNode.getChildren().get(1)).getChildren().get(0);
			footerNode=(TOCNode)tableNode.getChildren().get(5);
			assertNotNull("table header toc doesn't exist",headerNode);