Bug 176674 Errors/Failures found in JUnit test of org.eclipse.birt.report.engine.emitter.html.tests
Errors/Failures found in JUnit test of org.eclipse.birt.report.engine.emitter.html.tests in daily build 20070308. The build runs from HEAD version. Please see the attachment for details.
engine/org.eclipse.birt.report.engine.emitter.html.tests/test/org/eclipse/birt/report/engine/emitter/html/MetadataEmitterTest.java
List instanceIDs = new ArrayList( );
		options.setInstanceIDs( instanceIDs );
		options.setOutputStream( output );
		options.setEnableMetadata( true );
		if ( isRenderTask )
		{
			IRenderTask task = createRenderTask( designFile );
			task.setRenderOption( options );
			task.render( );
			task.close( );
		}
		else
		{
			IRunAndRenderTask task = createRunAndRenderTask( designFile );
			task.setRenderOption( options );
			task.run( );
			task.close( );
		}
		String content = new String( output.toByteArray( ) );
		output.close( );
		return new RenderResult( instanceIDs, content );
	}
	
	private void assertMetadataOutput( String content, List instanceIds,
			String bookmark, String type, String id )
	{
		assertEquals( 1, getCount( instanceIds, bookmark, type, id) );
		assertTrue( metaDataOutputInHtml( content, bookmark, type ) );
	}