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
String patternString = getNoMetaDataPattern( bookmark, type );
		Pattern pattern = Pattern.compile( patternString );
		Matcher matcher = pattern.matcher( content );
		while ( matcher.find( ) )
		{
			String attributes = matcher.group( 1 );
			String elementType = " element_type=\"" + type + "\"";
			if ( attributes.indexOf( elementType ) >= 0 )
			{
				return false;
			}
		}
		return true;
	}
	
	private String getMetaDataPattern( String bookmark, String type )
	{
		String[] patternStrings = getMetadataString( type );
		String resultPattern = patternStrings[0] + bookmark + patternStrings[1];
		return resultPattern;
	}
	
	private String getNoMetaDataPattern( String bookmark, String type )
	{
		String[] patternStrings = getNoMetadataString( type );
		String resultPattern = patternStrings[0] + bookmark + patternStrings[1];
		return resultPattern;
	}
	
	private int getCount( List list, String bookmark, String type, String id )