Bug 211545 org.eclipse.birt.report.tests.engine has compile error in 2.3 daily build 20071130.
org.eclipse.birt.report.tests.engine has compile error in 2.3 daily build 20071130. The error message is below: [javac] ---------- [javac] 7. ERROR in /home/adb/releng.230/src/plugins/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/DataExtractionTaskTest.java (at line 313) [javac] assertEquals( 112, data.getValue( "number" ) ); [javac] ^^^^^^^^^^^^ [javac] The method assertEquals(Object, Object) in the type Assert is not applicable for the arguments (int, Object) [javac] ---------- The JDK used in daily build is 1.4
testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/DataExtractionTaskTest.java
IRenderTask task = null;
		IReportDocument reportDoc = null;
		reportDoc = engine.openReportDocument( doc );
		task = engine.createRenderTask( reportDoc );
		IRenderOption htmlRenderOptions = new HTMLRenderOption( );
		HashMap appContext = new HashMap( );
		task.setAppContext( appContext );
		ByteArrayOutputStream ostream = new ByteArrayOutputStream( );
		htmlRenderOptions.setOutputStream( ostream );
		htmlRenderOptions.setOutputFormat( "html" );
		( (HTMLRenderOption) htmlRenderOptions ).setEnableMetadata( true );
		task.setRenderOption( htmlRenderOptions );
		task.render( );
		task.close( );
		String content = ostream.toString( "utf-8" );
		Pattern typePattern = Pattern.compile( "(element_type=\"" + type
				+ "\".*iid=\".*\")" );
		Matcher matcher = typePattern.matcher( content );
		while ( matcher.find( ) )
		{
			String tmp_type = null, strIid = null;
			tmp_type = matcher.group( 0 );
			strIid = tmp_type.substring( tmp_type.indexOf( "iid" ) );
			strIid = strIid.substring( 5, strIid.indexOf( "\"", 6 ) );
			iids.add( InstanceID.parse( strIid ) );
		}
		return iids;
	}
}